From 3237e97b3592d4f3920dab556d551da65a465b8d Mon Sep 17 00:00:00 2001 From: Rubidium Date: Wed, 16 Jun 2021 21:10:41 +0200 Subject: Cleanup: [Script] Use nullptr instead of 0 or NULL --- src/script/api/script_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script/api') 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(real_instance); -- cgit v1.2.3-70-g09d2