1
0
Fork 0

Fix possible crash

This commit is contained in:
cora 2022-10-17 11:27:36 +02:00
parent 2e01180fc8
commit 7c15b929fa
1 changed files with 1 additions and 1 deletions

View File

@ -2058,7 +2058,7 @@ local monster_attack = function(self)
player = obj.object player = obj.object
name = obj.name or "" name = obj.name or ""
end end
if obj.type == self.type and obj.passive == false and obj.state == "attack" and obj.attack then if obj and obj.type == self.type and obj.passive == false and obj.state == "attack" and obj.attack then
table.insert(blacklist_attack, obj.attack) table.insert(blacklist_attack, obj.attack)
end end
end end