diff -r d8f8db9c1a2e -r a9479d5aa957 src/ai/squirrel/engine.hpp --- a/src/ai/squirrel/engine.hpp Thu Mar 15 00:27:28 2007 +0000 +++ b/src/ai/squirrel/engine.hpp Thu Mar 15 09:08:45 2007 +0000 @@ -80,7 +80,7 @@ * @note This will only work just after a function-call from within Squirrel * to your C++ function. */ - static bool GetInstance(HSQUIRRELVM vm, SQUserPointer *ptr) { if (SQ_FAILED(sq_getinstanceup(vm, 1, ptr, 0))) return false; return true; } + static bool GetInstance(HSQUIRRELVM vm, SQUserPointer *ptr) { return SQ_SUCCEEDED(sq_getinstanceup(vm, 1, ptr, 0); } HSQUIRRELVM GetVM() { #warning Please stop using this function ASAP