Skip to content

Commit a05703e

Browse files
authored
Merge pull request #386 from YoYoGames/bugs/gmb-1709
Fix bug YoYoGames/GameMaker-Bugs#1709
2 parents 2ce563b + d436af8 commit a05703e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/functions/Function_File.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,7 @@ function _json_reviver(_, value)
14041404
}
14051405
// It's an object prepare to set internal values
14061406
var obj = {};
1407-
obj.__type = "Object";
1407+
obj.__type = "___struct___";
14081408
obj.__yyIsGMLObject = true;
14091409
// Go through all the property names in parsed value
14101410
for (var oName in value) {

scripts/functions/Function_Maths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ function lerp(_val1, _val2, _amount) {
15351535
_val1 = yyGetReal(_val1);
15361536
_val2 = yyGetReal(_val2);
15371537

1538-
return _val1 + ((_val2 - _val1) * _amount);
1538+
return _val1 + ((_val2 - _val1) * yyGetReal(_amount));
15391539
}
15401540

15411541

0 commit comments

Comments
 (0)