Skip to content

Commit c4de217

Browse files
author
liply
authored
Merge pull request #58 from rpgtkoolmv/fix-save
fix chance to break save file
2 parents 3947c2f + 3ab25fb commit c4de217

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

js/rpg_core/JsonEx.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ JsonEx._encode = function(value, circular, depth) {
136136
if(value[key] && typeof value[key] === 'object'){
137137
if(!value[key]['@m']){
138138
value[key] = this._encode(value[key], circular, depth + 1);
139+
delete value[key]['@m'];
139140
}else{
140141
circular.push([key, value, value[key]]);
141142
value[key] = {'@r': value[key]['@c']};

0 commit comments

Comments
 (0)