fixed crash if entity doesn't have a sound table defined
parent
737b769307
commit
1063749c15
2
init.lua
2
init.lua
|
@ -414,7 +414,7 @@ function mobkit.animate(self,anim)
|
||||||
end
|
end
|
||||||
|
|
||||||
function mobkit.make_sound(self, sound)
|
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}
|
local param_table = {object=self.object}
|
||||||
|
|
||||||
if type(spec) == 'table' then
|
if type(spec) == 'table' then
|
||||||
|
|
Loading…
Reference in New Issue