Skip to content

Commit 3a788d0

Browse files
author
Pavel Kovalenko
committed
Fix incorrect argument in call to xrDebug::fatal.
1 parent 7202f23 commit 3a788d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrCDB/ISpatial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ void ISpatial_DB::insert (ISpatial* S)
261261
if (!bValid)
262262
{
263263
CObject* O = dynamic_cast<CObject*>(S);
264-
if (O) Debug.fatal(DEBUG_INFO,"Invalid OBJECT position or radius (%s)",O->cName());
264+
if (O) Debug.fatal(DEBUG_INFO,"Invalid OBJECT position or radius (%s)",O->cName().c_str());
265265
else {
266266
CPS_Instance* P = dynamic_cast<CPS_Instance*>(S);
267267
if (P) Debug.fatal(DEBUG_INFO,"Invalid PS spatial position{%3.2f,%3.2f,%3.2f} or radius{%3.2f}",VPUSH(S->spatial.sphere.P),S->spatial.sphere.R);

0 commit comments

Comments
 (0)