summaryrefslogtreecommitdiff
path: root/src/ai
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/ai
parent930bb224168145f942a426dc8404f02f20fa2be0 (diff)
downloadopenttd-3237e97b3592d4f3920dab556d551da65a465b8d.tar.xz
Cleanup: [Script] Use nullptr instead of 0 or NULL
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_info.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/ai_info.cpp b/src/ai/ai_info.cpp
index dfb2e5fbf..10d34ea58 100644
--- a/src/ai/ai_info.cpp
+++ b/src/ai/ai_info.cpp
@@ -63,7 +63,7 @@ template <> const char *GetClassName<AIInfo, ST_AI>() { return "AIInfo"; }
{
/* Get the AIInfo */
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 AIInfo to RegisterAI");
+ if (SQ_FAILED(sq_getinstanceup(vm, 2, &instance, nullptr)) || instance == nullptr) return sq_throwerror(vm, "Pass an instance of a child class of AIInfo to RegisterAI");
AIInfo *info = (AIInfo *)instance;
SQInteger res = ScriptInfo::Constructor(vm, info);
@@ -107,7 +107,7 @@ template <> const char *GetClassName<AIInfo, ST_AI>() { return "AIInfo"; }
{
/* Get the AIInfo */
SQUserPointer instance;
- sq_getinstanceup(vm, 2, &instance, 0);
+ sq_getinstanceup(vm, 2, &instance, nullptr);
AIInfo *info = (AIInfo *)instance;
info->api_version = nullptr;