Remove temp arrays in scripts.cc
This commit is contained in:
parent
1d3e61f346
commit
09da584210
|
@ -32,7 +32,6 @@
|
||||||
#include "scripts.h"
|
#include "scripts.h"
|
||||||
#include "selfrun.h"
|
#include "selfrun.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include "sfall_arrays.h"
|
|
||||||
#include "sfall_config.h"
|
#include "sfall_config.h"
|
||||||
#include "svga.h"
|
#include "svga.h"
|
||||||
#include "text_font.h"
|
#include "text_font.h"
|
||||||
|
@ -375,8 +374,6 @@ static void mainLoop()
|
||||||
|
|
||||||
renderPresent();
|
renderPresent();
|
||||||
sharedFpsLimiter.throttle();
|
sharedFpsLimiter.throttle();
|
||||||
|
|
||||||
DeleteAllTempArrays();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
scriptsDisable();
|
scriptsDisable();
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#include "proto.h"
|
#include "proto.h"
|
||||||
#include "proto_instance.h"
|
#include "proto_instance.h"
|
||||||
#include "queue.h"
|
#include "queue.h"
|
||||||
|
#include "sfall_arrays.h"
|
||||||
#include "sfall_config.h"
|
#include "sfall_config.h"
|
||||||
#include "stat.h"
|
#include "stat.h"
|
||||||
#include "svga.h"
|
#include "svga.h"
|
||||||
|
@ -1027,6 +1028,8 @@ int scriptsHandleRequests()
|
||||||
inventoryOpenStealing(gScriptsRequestedStealingBy, gScriptsRequestedStealingFrom);
|
inventoryOpenStealing(gScriptsRequestedStealingBy, gScriptsRequestedStealingFrom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DeleteAllTempArrays();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue