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); }