Explorar o código

Merge pull request #148 from eightyeight/simfindobject

Prevented looking up incorrect object handles
Daniel Buckmaster %!s(int64=11) %!d(string=hai) anos
pai
achega
0fb7266dbe
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Engine/source/console/simManager.cpp

+ 2 - 0
Engine/source/console/simManager.cpp

@@ -367,6 +367,8 @@ SimObject* findObject(const char* name)
                return NULL;
             return obj->findObject(temp);
          }
+         else if (c < '0' || c > '9')
+            return NULL;
       }
    }
    S32 len;