Skip to content

Commit 4092acd

Browse files
authored
Merge pull request #425 from YoYoGames/bugs/gmb-4452
Fix bug YoYoGames/GameMaker-Bugs#4452
2 parents 27f5baa + 4f98102 commit 4092acd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/functions/Function_File.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,6 +1538,8 @@ function json_convert_pointer_null( _v )
15381538
} // end for
15391539
break;
15401540
case "object":
1541+
if (_v == g_pBuiltIn.pointer_null) ret = undefined;
1542+
else
15411543
for( var key in _v) {
15421544
if (_v.hasOwnProperty(key)) {
15431545
_v[key] = json_convert_pointer_null(_v[key]);
@@ -1561,7 +1563,7 @@ function json_parse( _v, _func )
15611563
try {
15621564
var ret = JSON.parse(_v, _json_reviver);
15631565
if (g_counterPointerNull > 0) {
1564-
json_convert_pointer_null(ret);
1566+
ret = json_convert_pointer_null(ret);
15651567
} // end if
15661568
return ret;
15671569
}

0 commit comments

Comments
 (0)