From 1063749c15f5db2ca401b5773ae60ef3ed2674bb Mon Sep 17 00:00:00 2001 From: NetherEran Date: Thu, 7 Nov 2019 08:03:32 +0100 Subject: [PATCH] fixed crash if entity doesn't have a sound table defined --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 7095f53..613f994 100644 --- a/init.lua +++ b/init.lua @@ -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