From 09da5842101dd7540b946fbd1818171c80a157de Mon Sep 17 00:00:00 2001 From: Vasilii Rogin Date: Thu, 20 Apr 2023 09:30:15 +0300 Subject: [PATCH] Remove temp arrays in scripts.cc --- src/main.cc | 3 --- src/scripts.cc | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cc b/src/main.cc index 7698046..9025ad5 100644 --- a/src/main.cc +++ b/src/main.cc @@ -32,7 +32,6 @@ #include "scripts.h" #include "selfrun.h" #include "settings.h" -#include "sfall_arrays.h" #include "sfall_config.h" #include "svga.h" #include "text_font.h" @@ -375,8 +374,6 @@ static void mainLoop() renderPresent(); sharedFpsLimiter.throttle(); - - DeleteAllTempArrays(); } scriptsDisable(); diff --git a/src/scripts.cc b/src/scripts.cc index 7a35d39..7de46fd 100644 --- a/src/scripts.cc +++ b/src/scripts.cc @@ -29,6 +29,7 @@ #include "proto.h" #include "proto_instance.h" #include "queue.h" +#include "sfall_arrays.h" #include "sfall_config.h" #include "stat.h" #include "svga.h" @@ -1027,6 +1028,8 @@ int scriptsHandleRequests() inventoryOpenStealing(gScriptsRequestedStealingBy, gScriptsRequestedStealingFrom); } + DeleteAllTempArrays(); + return 0; }