From e4983aa16e5f643a34f2c3b81b2c1c38ae6c0f25 Mon Sep 17 00:00:00 2001 From: Malcolm Tyrrell Date: Mon, 15 Mar 2021 16:46:41 +0000 Subject: [PATCH] Fix code issue --- code/AssetLib/glTF2/glTF2Asset.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/AssetLib/glTF2/glTF2Asset.inl b/code/AssetLib/glTF2/glTF2Asset.inl index 8a88255c4..daac549e9 100644 --- a/code/AssetLib/glTF2/glTF2Asset.inl +++ b/code/AssetLib/glTF2/glTF2Asset.inl @@ -185,7 +185,7 @@ inline void throwUnexpectedTypeError(const char (&expectedTypeName)[N], const ch std::string fullContext = context; if (extraContext && (strlen(extraContext) > 0)) { - fullContext += " (", extraContext, ")"; + fullContext = fullContext + " (" + extraContext + ")"; } throw DeadlyImportError("Member \"", memberId, "\" was not of type \"", expectedTypeName, "\" when reading ", fullContext); }