Fixed compilation with Clang and GCC

No more "error: cannot pass object of non-trivial type 'FString' through variadic method; call will abort at runtime"
This commit is contained in:
alexey.lysiuk 2016-07-30 10:09:00 +03:00 committed by Christoph Oelckers
parent a1a0da1f13
commit 0648ef693f

View file

@ -4212,7 +4212,7 @@ ExpEmit FxJumpStatement::Emit(VMFunctionBuilder *build)
{
if (AddressResolver == nullptr)
{
ScriptPosition.Message(MSG_ERROR, "Jump statement %s has nowhere to go!", FScanner::TokenName(Token));
ScriptPosition.Message(MSG_ERROR, "Jump statement %s has nowhere to go!", FScanner::TokenName(Token).GetChars());
}
Address = build->Emit(OP_JMP, 0);