CAreaLoader: Fix debug print formatting

Passes the correct type to the formatting specifier.
This commit is contained in:
Lioncash 2020-06-18 13:15:38 -04:00
parent 9d21516296
commit e75ef00d1c
1 changed files with 4 additions and 1 deletions

View File

@ -668,7 +668,10 @@ void CAreaLoader::SetUpObjects(CScriptLayer *pGenLayer)
if (mpArea->InstanceByID(InstanceID) != nullptr)
{
if (pInst->ObjectTypeID() != FOURCC('GCTR'))
debugf("Duplicate SCGN object: [%s] %s (%08X)", *pInst->Template()->Name(), *pInst->InstanceName(), pInst->InstanceID());
{
debugf("Duplicate SCGN object: [%s] %s (%08X)", *pInst->Template()->Name(), *pInst->InstanceName(),
static_cast<uint32>(pInst->InstanceID()));
}
pGenLayer->RemoveInstance(pInst);
delete pInst;