瀏覽代碼

Addresses issue mentioned in http://www.garagegames.com/community/forums/viewthread/136064 - now returns the pSceneObjectCollider->getId() value instead of pSceneObjectCollider itself.

RichardRanft 11 年之前
父節點
當前提交
23165babcf
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      engine/source/2d/sceneobject/SceneObject_ScriptBinding.h

+ 3 - 3
engine/source/2d/sceneobject/SceneObject_ScriptBinding.h

@@ -1156,7 +1156,7 @@ ConsoleMethodWithDocs(SceneObject, getContact, ConsoleString, 3, 3, (contactInde
     {
     {
         dSprintf(pReturnBuffer, 128,
         dSprintf(pReturnBuffer, 128,
             "%d %d %d %0.4f %0.4f %0.4f %0.4f %0.4f %0.4f %0.4f %0.4f %0.4f %0.4f",
             "%d %d %d %0.4f %0.4f %0.4f %0.4f %0.4f %0.4f %0.4f %0.4f %0.4f %0.4f",
-            pSceneObjectCollider,
+            pSceneObjectCollider->getId(),
             shapeIndexThis, shapeIndexCollider,
             shapeIndexThis, shapeIndexCollider,
             normal.x, normal.y,
             normal.x, normal.y,
             point1.x, point1.y,
             point1.x, point1.y,
@@ -1170,7 +1170,7 @@ ConsoleMethodWithDocs(SceneObject, getContact, ConsoleString, 3, 3, (contactInde
     {
     {
         dSprintf(pReturnBuffer, 128,
         dSprintf(pReturnBuffer, 128,
             "%d %d %d %0.4f %0.4f %0.4f %0.4f %0.4f %0.4f",
             "%d %d %d %0.4f %0.4f %0.4f %0.4f %0.4f %0.4f",
-            pSceneObjectCollider,
+            pSceneObjectCollider->getId(),
             shapeIndexThis, shapeIndexCollider,
             shapeIndexThis, shapeIndexCollider,
             normal.x, normal.y,
             normal.x, normal.y,
             point1.x, point1.y,
             point1.x, point1.y,
@@ -1181,7 +1181,7 @@ ConsoleMethodWithDocs(SceneObject, getContact, ConsoleString, 3, 3, (contactInde
 	{
 	{
         dSprintf(pReturnBuffer, 64,
         dSprintf(pReturnBuffer, 64,
             "%d %d %d",
             "%d %d %d",
-            pSceneObjectCollider,
+            pSceneObjectCollider->getId(),
             shapeIndexThis, shapeIndexCollider );
             shapeIndexThis, shapeIndexCollider );
 	}
 	}