ID10T error

no default does not need case -_- id10t error, few other fixes
This commit is contained in:
marauder2k7 2024-07-22 21:12:48 +01:00
parent a621cc5100
commit 6807abc8b6
5 changed files with 8 additions and 6 deletions

View file

@ -2806,11 +2806,11 @@ DefineEngineFunction(getTimestamp, const char*, (), ,
#ifdef TORQUE_TOOLS
DefineEngineFunction(systemCommand, S32, (const char* commandLineAction, const char* callBackFunction), (""), "")
{
if (commandLineAction != "")
if (callBackFunction[0] != '\0')
{
S32 result = system(commandLineAction);
if (callBackFunction != "" && callBackFunction[0])
if (callBackFunction[0])
{
if (Con::isFunction(callBackFunction))
Con::executef(callBackFunction, result);

View file

@ -942,6 +942,7 @@ U32 AssignExprNode::compile(CodeStream& codeStream, U32 ip, TypeReq type)
case TypeReqString: codeStream.emit(OP_SAVEVAR_STR); break;
case TypeReqUInt: codeStream.emit(OP_SAVEVAR_UINT); break;
case TypeReqFloat: codeStream.emit(OP_SAVEVAR_FLT); break;
default: break;
}
}
else