mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Fixed crash in Con::warnf function. Issue #82
This commit is contained in:
parent
4a3060997c
commit
a31e6a755c
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue