Fixed compilation with GCC/Clang

No longer aborts with 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-09-04 10:02:09 +03:00
parent 77ac3bb265
commit 677efb73bc

View file

@ -3504,12 +3504,12 @@ class CommandIfCVarInt : public SBarInfoNegatableFlowControl
}
else
{
sc.ScriptError("Type mismatch: console variable '%s' is not of type 'bool' or 'int'.", cvarname);
sc.ScriptError("Type mismatch: console variable '%s' is not of type 'bool' or 'int'.", cvarname.GetChars());
}
}
else
{
sc.ScriptError("Unknown console variable '%s'.", cvarname);
sc.ScriptError("Unknown console variable '%s'.", cvarname.GetChars());
}
}
void Tick(const SBarInfoMainBlock *block, const DSBarInfo *statusBar, bool hudChanged)