From 48686bd937286dc2cdbe46e87cc54d5885795ec7 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sat, 21 Mar 2020 13:57:38 +0200 Subject: [PATCH] Rename function to better express the intention behind it. --- source/Core/Funcs.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Core/Funcs.inc b/source/Core/Funcs.inc index a8a50b6f..11c1a405 100644 --- a/source/Core/Funcs.inc +++ b/source/Core/Funcs.inc @@ -51,7 +51,7 @@ static SQInteger SqGetEvents(HSQUIRRELVM vm) } // ------------------------------------------------------------------------------------------------ -static SQInteger SqEnableNullEntities(HSQUIRRELVM vm) +static SQInteger SqForceEnableNullEntities(HSQUIRRELVM vm) { Core::Get().EnableNullEntities(); return 0; @@ -358,7 +358,7 @@ void Register_Core(HSQUIRRELVM vm) .Func(_SC("OnPreLoad"), &SqGetPreLoadEvent) .Func(_SC("OnPostLoad"), &SqGetPostLoadEvent) .Func(_SC("OnUnload"), &SqGetUnloadEvent) - .SquirrelFunc(_SC("EnableNullEntities"), &SqEnableNullEntities) + .SquirrelFunc(_SC("ForceEnableNullEntities"), &SqForceEnableNullEntities) .SquirrelFunc(_SC("LoadScript"), &SqLoadScript) .SquirrelFunc(_SC("On"), &SqGetEvents);