Index: binaries/data/mods/public/gui/gamesettings/attributes/GameSpeed.js =================================================================== --- binaries/data/mods/public/gui/gamesettings/attributes/GameSpeed.js +++ binaries/data/mods/public/gui/gamesettings/attributes/GameSpeed.js @@ -8,7 +8,7 @@ toInitAttributes(attribs) { - attribs.gameSpeed = this.gameSpeed; + attribs.gameSpeed = +this.gameSpeed; } fromInitAttributes(attribs) @@ -27,6 +27,6 @@ setSpeed(speed) { - this.gameSpeed = speed; + this.gameSpeed = +speed; } }; Index: source/ps/Game.cpp =================================================================== --- source/ps/Game.cpp +++ source/ps/Game.cpp @@ -221,8 +221,13 @@ scriptInterface.GetProperty(attribs, "mapType", mapType); float speed; - if (scriptInterface.HasProperty(attribs, "gameSpeed") && scriptInterface.GetProperty(attribs, "gameSpeed", speed)) - SetSimRate(speed); + if (scriptInterface.HasProperty(attribs, "gameSpeed")) + { + if (scriptInterface.GetProperty(attribs, "gameSpeed", speed)) + SetSimRate(speed); + else + LOGERROR("GameSpeed could not be parsed."); + } LDR_BeginRegistering();