Explorar o código

Fixed crash in Con::warnf function. Issue #82

Dmitry %!s(int64=12) %!d(string=hai) anos
pai
achega
a31e6a755c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Engine/source/T3D/fx/explosion.cpp

+ 1 - 1
Engine/source/T3D/fx/explosion.cpp

@@ -151,7 +151,7 @@ DefineEngineFunction(calcExplosionCoverage, F32, (Point3F pos, S32 id, U32 covMa
 
    SceneObject* sceneObject = NULL;
    if (Sim::findObject(id, sceneObject) == false) {
-      Con::warnf(ConsoleLogEntry::General, "calcExplosionCoverage: couldn't find object: %s", id);
+      Con::warnf(ConsoleLogEntry::General, "calcExplosionCoverage: couldn't find object: %d", id);
       return 1.0f;
    }
    if (sceneObject->isClientObject() || sceneObject->getContainer() == NULL) {