File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -894,6 +894,9 @@ function AP:initialize()
894
894
895
895
self :loadScript (self .settings .script )
896
896
end
897
+ function AP :unserialize_custom ()
898
+ setmetatable (self .soundEvent ,gameSoundFunc )
899
+ end
897
900
898
901
---- ----------------------------------------------------------
899
902
Original file line number Diff line number Diff line change @@ -2178,7 +2178,7 @@ function BP:unserialize_custom()
2178
2178
self .field ._width = f ._width
2179
2179
self .field ._matrix = f ._matrix
2180
2180
2181
- self .soundEvent = setmetatable ({} ,gameSoundFunc )
2181
+ setmetatable ( self .soundEvent ,gameSoundFunc )
2182
2182
end
2183
2183
2184
2184
---- ----------------------------------------------------------
Original file line number Diff line number Diff line change @@ -1588,6 +1588,9 @@ function GP:initialize()
1588
1588
1589
1589
self :loadScript (self .settings .script )
1590
1590
end
1591
+ function GP :unserialize_custom ()
1592
+ setmetatable (self .soundEvent ,gameSoundFunc )
1593
+ end
1591
1594
1592
1595
---- ----------------------------------------------------------
1593
1596
You can’t perform that action at this time.
0 commit comments