diff --git a/assets/game/acryPlayer.lua b/assets/game/acryPlayer.lua index 43264d9c..71401dac 100644 --- a/assets/game/acryPlayer.lua +++ b/assets/game/acryPlayer.lua @@ -894,6 +894,9 @@ function AP:initialize() self:loadScript(self.settings.script) end +function AP:unserialize_custom() + setmetatable(self.soundEvent,gameSoundFunc) +end -------------------------------------------------------------- diff --git a/assets/game/brikPlayer.lua b/assets/game/brikPlayer.lua index b4e8dfea..e2f96440 100644 --- a/assets/game/brikPlayer.lua +++ b/assets/game/brikPlayer.lua @@ -2178,7 +2178,7 @@ function BP:unserialize_custom() self.field._width=f._width self.field._matrix=f._matrix - self.soundEvent=setmetatable({},gameSoundFunc) + setmetatable(self.soundEvent,gameSoundFunc) end -------------------------------------------------------------- diff --git a/assets/game/gelaPlayer.lua b/assets/game/gelaPlayer.lua index 3199a316..7d6e65d6 100644 --- a/assets/game/gelaPlayer.lua +++ b/assets/game/gelaPlayer.lua @@ -1588,6 +1588,9 @@ function GP:initialize() self:loadScript(self.settings.script) end +function GP:unserialize_custom() + setmetatable(self.soundEvent,gameSoundFunc) +end --------------------------------------------------------------