summaryrefslogtreecommitdiff
path: root/src/script/squirrel.hpp
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-06-16 21:10:41 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-06-17 16:18:30 +0200
commit3237e97b3592d4f3920dab556d551da65a465b8d (patch)
tree2080483e02f2af2241881d83d0bab8f21be61f91 /src/script/squirrel.hpp
parent930bb224168145f942a426dc8404f02f20fa2be0 (diff)
downloadopenttd-3237e97b3592d4f3920dab556d551da65a465b8d.tar.xz
Cleanup: [Script] Use nullptr instead of 0 or NULL
Diffstat (limited to 'src/script/squirrel.hpp')
-rw-r--r--src/script/squirrel.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/squirrel.hpp b/src/script/squirrel.hpp
index 412011ccc..c1fdc7511 100644
--- a/src/script/squirrel.hpp
+++ b/src/script/squirrel.hpp
@@ -190,7 +190,7 @@ public:
* @note This will only work just after a function-call from within Squirrel
* to your C++ function.
*/
- static bool GetRealInstance(HSQUIRRELVM vm, SQUserPointer *ptr) { return SQ_SUCCEEDED(sq_getinstanceup(vm, 1, ptr, 0)); }
+ static bool GetRealInstance(HSQUIRRELVM vm, SQUserPointer *ptr) { return SQ_SUCCEEDED(sq_getinstanceup(vm, 1, ptr, nullptr)); }
/**
* Get the Squirrel-instance pointer.