mirror of
https://github.com/ElCeejo/creatura.git
synced 2025-03-15 04:11:24 +00:00
nil check
This commit is contained in:
parent
3e8b728f72
commit
97375e0888
1 changed files with 1 additions and 0 deletions
|
@ -744,6 +744,7 @@ function mob:initiate_utility(utility, ...)
|
|||
end
|
||||
|
||||
function mob:set_utility_score(n)
|
||||
if not self._utility_data then return end
|
||||
self._utility_data.score = n or 0
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue