Browse Source

Replace object's address format in getDebugInfo()

Konrad Gotfryd 5 năm trước cách đây
mục cha
commit
f77a18e0d2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Engine/source/console/simObject.cpp

+ 1 - 1
Engine/source/console/simObject.cpp

@@ -3178,7 +3178,7 @@ DefineEngineMethod( SimObject, getDebugInfo, ArrayObject*, (),,
    ArrayObject* array = new ArrayObject();
    array->registerObject();
 
-   array->push_back( "C++|Address", String::ToString( "0x%x", object ) );
+   array->push_back( "C++|Address", String::ToString( "%p", object ) );
    array->push_back( "C++|Size", String::ToString( object->getClassRep()->getSizeof() ) );
    array->push_back( "Object|Description", object->describeSelf() );
    array->push_back( "Object|FileName", object->getFilename() );