Merge pull request #9 from NetherEran/soundfix

fixed crash if entity doesn't have a sound table defined
master
TheTermos 2019-11-07 13:26:45 +01:00 committed by GitHub
commit 52738492aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -414,7 +414,7 @@ function mobkit.animate(self,anim)
end
function mobkit.make_sound(self, sound)
local spec = self.sounds[sound]
local spec = self.sounds and self.sounds[sound]
local param_table = {object=self.object}
if type(spec) == 'table' then