CScriptTemplate: Fix debug print formatting in CheckVolumeConditions

Ensures that the proper type is passed in.
This commit is contained in:
Lioncash 2020-06-18 13:17:28 -04:00
parent e75ef00d1c
commit 3d74639bea
1 changed files with 4 additions and 1 deletions

View File

@ -163,7 +163,10 @@ int32 CScriptTemplate::CheckVolumeConditions(CScriptObject *pObj, bool LogErrors
}
if (LogErrors)
errorf("%s instance %08X has unexpected volume shape value of 0x%X", *pObj->Template()->Name(), pObj->InstanceID(), Val);
{
errorf("%s instance %08X has unexpected volume shape value of 0x%X", *pObj->Template()->Name(),
static_cast<uint32>(pObj->InstanceID()), Val);
}
}
return -1;