diff options
author | Rubidium <rubidium@openttd.org> | 2021-06-16 21:10:41 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-06-17 16:18:30 +0200 |
commit | 3237e97b3592d4f3920dab556d551da65a465b8d (patch) | |
tree | 2080483e02f2af2241881d83d0bab8f21be61f91 /src/script/squirrel.hpp | |
parent | 930bb224168145f942a426dc8404f02f20fa2be0 (diff) | |
download | openttd-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.hpp | 2 |
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. |