fixed crash if entity doesn't have a sound table defined

master
NetherEran 2019-11-07 08:03:32 +01:00
parent 737b769307
commit 1063749c15
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