HomeWildfire Games

Fix off-by-one line number in JS error reporting.

Description

Fix off-by-one line number in JS error reporting.

Post SM60 upgrade, CompileFunction started actually adding a line in front of the source buffer, shifting the error reporting in the simulation and other callers of LoadScript.
The GUI isn't affected as it uses LoadGlobalScript, which uses Evaluate directly.

Refs #5859
Fixes #5895

Differential Revision: https://code.wildfiregames.com/D3257