mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-04 11:12:20 +00:00
Implement Perl Export Variable settings map (Huge performance boost) (Preliminary)
This commit is contained in:
1 parent
33917fe2a9
commit
53c8d63981
15 files changed
+126
-15
No files matched your search
+3
-3
@@ -46,7 +46,7 @@ void ZoneDatabase::ZDBInitVars() {
|
||||
ZoneDatabase::~ZoneDatabase() {
|
||||
unsigned int x;
|
||||
if (npc_spells_cache) {
|
||||
for (x=0; x<=npc_spells_maxid; x++) {
|
||||
for (x = 0; x <= npc_spells_maxid; x++) {
|
||||
safe_delete_array(npc_spells_cache[x]);
|
||||
}
|
||||
safe_delete_array(npc_spells_cache);
|
||||
@@ -54,7 +54,7 @@ ZoneDatabase::~ZoneDatabase() {
|
||||
safe_delete_array(npc_spells_loadtried);
|
||||
|
||||
if (npc_spellseffects_cache) {
|
||||
for (x=0; x<=npc_spellseffects_maxid; x++) {
|
||||
for (x = 0; x <= npc_spellseffects_maxid; x++) {
|
||||
safe_delete_array(npc_spellseffects_cache[x]);
|
||||
}
|
||||
safe_delete_array(npc_spellseffects_cache);
|
||||
@@ -62,7 +62,7 @@ ZoneDatabase::~ZoneDatabase() {
|
||||
safe_delete_array(npc_spellseffects_loadtried);
|
||||
|
||||
if (faction_array != nullptr) {
|
||||
for (x=0; x <= max_faction; x++) {
|
||||
for (x = 0; x <= max_faction; x++) {
|
||||
if (faction_array[x] != 0)
|
||||
safe_delete(faction_array[x]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user