Core/Scripts: Reorder SpellScriptBase fields to reduce padding and remove unused include

This commit is contained in:
Shauren
2025-11-16 23:47:51 +01:00
parent c4bec744ad
commit d2f5f70326
2 changed files with 2 additions and 3 deletions

View File

@@ -21,7 +21,6 @@
#include "Spell.h"
#include "SpellAuras.h"
#include "SpellMgr.h"
#include "StringConvert.h"
#include "Unit.h"
#include <string>
@@ -35,7 +34,7 @@ bool SpellScriptBase::_Validate(SpellInfo const* entry)
return true;
}
SpellScriptBase::SpellScriptBase() noexcept : m_currentScriptState(SPELL_SCRIPT_STATE_NONE), m_scriptSpellId(0)
SpellScriptBase::SpellScriptBase() noexcept : m_scriptSpellId(0), m_currentScriptState(SPELL_SCRIPT_STATE_NONE)
{
}

View File

@@ -174,9 +174,9 @@ protected:
Ret(* Thunk)(BaseClass&, Args..., StorageType);
};
uint8 m_currentScriptState;
std::string_view m_scriptName;
uint32 m_scriptSpellId;
uint8 m_currentScriptState;
private: