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

This commit is contained in:
Dmitry 2012-12-04 10:18:35 -08:00 committed by DavidWyand-GG
parent 4a3060997c
commit a31e6a755c

View file

@ -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) {