Add logging offset for Json parsing errors

This commit is contained in:
Wojtek Figat
2020-12-30 23:50:07 +01:00
parent 29a8abd996
commit 3973452ec3
7 changed files with 20 additions and 18 deletions

View File

@@ -786,7 +786,7 @@ bool Level::loadScene(const BytesContainer& sceneData, bool autoInitialize, Scen
document.Parse(sceneData.Get<char>(), sceneData.Length());
if (document.HasParseError())
{
Log::JsonParseException(document.GetParseError());
Log::JsonParseException(document.GetParseError(), document.GetErrorOffset());
return true;
}