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/api | |
parent | 930bb224168145f942a426dc8404f02f20fa2be0 (diff) | |
download | openttd-3237e97b3592d4f3920dab556d551da65a465b8d.tar.xz |
Cleanup: [Script] Use nullptr instead of 0 or NULL
Diffstat (limited to 'src/script/api')
-rw-r--r-- | src/script/api/script_text.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_text.cpp b/src/script/api/script_text.cpp index eeb7b2221..62980326c 100644 --- a/src/script/api/script_text.cpp +++ b/src/script/api/script_text.cpp @@ -109,7 +109,7 @@ SQInteger ScriptText::_SetParam(int parameter, HSQUIRRELVM vm) sq_pop(vm, 3); /* Get the 'real' instance of this class */ - sq_getinstanceup(vm, -1, &real_instance, 0); + sq_getinstanceup(vm, -1, &real_instance, nullptr); if (real_instance == nullptr) return SQ_ERROR; ScriptText *value = static_cast<ScriptText *>(real_instance); |