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/game/game_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/game_info.cpp b/src/game/game_info.cpp index 3d07a10c4..60b4d0dcc 100644 --- a/src/game/game_info.cpp +++ b/src/game/game_info.cpp @@ -54,7 +54,7 @@ template <> const char *GetClassName() { return "GSInfo"; } { /* Get the GameInfo */ SQUserPointer instance = nullptr; - if (SQ_FAILED(sq_getinstanceup(vm, 2, &instance, 0)) || instance == nullptr) return sq_throwerror(vm, "Pass an instance of a child class of GameInfo to RegisterGame"); + if (SQ_FAILED(sq_getinstanceup(vm, 2, &instance, nullptr)) || instance == nullptr) return sq_throwerror(vm, "Pass an instance of a child class of GameInfo to RegisterGame"); GameInfo *info = (GameInfo *)instance; SQInteger res = ScriptInfo::Constructor(vm, info); -- cgit v1.2.3-54-g00ecf