diff --git a/src/Core/Resource/Script/CScriptTemplate.cpp b/src/Core/Resource/Script/CScriptTemplate.cpp index 569f0d26..94f6e6ec 100644 --- a/src/Core/Resource/Script/CScriptTemplate.cpp +++ b/src/Core/Resource/Script/CScriptTemplate.cpp @@ -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(pObj->InstanceID()), Val); + } } return -1;