Merge pull request #9 from NetherEran/soundfix
fixed crash if entity doesn't have a sound table definedmaster
commit
52738492aa
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