From e75ef00d1c1095d925d8149a38617d2cc61ea322 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 18 Jun 2020 13:15:38 -0400 Subject: [PATCH] CAreaLoader: Fix debug print formatting Passes the correct type to the formatting specifier. --- src/Core/Resource/Factory/CAreaLoader.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Core/Resource/Factory/CAreaLoader.cpp b/src/Core/Resource/Factory/CAreaLoader.cpp index ef2da26e..e9a2a6ea 100644 --- a/src/Core/Resource/Factory/CAreaLoader.cpp +++ b/src/Core/Resource/Factory/CAreaLoader.cpp @@ -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(pInst->InstanceID())); + } pGenLayer->RemoveInstance(pInst); delete pInst;