diff options
author | Francesco Borzì <borzifrancesco@gmail.com> | 2024-07-31 01:06:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-30 20:06:46 -0300 |
commit | 02a05fbd4c640b33b1e03075681f169db2fb6ab2 (patch) | |
tree | cfe8879750af8cd87d3ebbea244dd88c52e47275 /src/server/game/Scripting/ScriptMgr.h | |
parent | 06a608d244cf24d5077cbcdf547993d2a0e30659 (diff) |
refactor(src/common): remove unused imports (#19506)
* refactor(src/common): remove unused imports
* fix: build
* chore: fix build
* chore: size_t -> std::size_t
* chore: fix fuckup from previous commit
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build with std::size_t
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
Diffstat (limited to 'src/server/game/Scripting/ScriptMgr.h')
-rw-r--r-- | src/server/game/Scripting/ScriptMgr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Scripting/ScriptMgr.h b/src/server/game/Scripting/ScriptMgr.h index 15fb7d4faf..eed0d2f20a 100644 --- a/src/server/game/Scripting/ScriptMgr.h +++ b/src/server/game/Scripting/ScriptMgr.h @@ -530,7 +530,7 @@ public: /* GlobalScript */ public: /* Scheduled scripts */ uint32 IncreaseScheduledScriptsCount() { return ++_scheduledScripts; } uint32 DecreaseScheduledScriptCount() { return --_scheduledScripts; } - uint32 DecreaseScheduledScriptCount(size_t count) { return _scheduledScripts -= count; } + uint32 DecreaseScheduledScriptCount(std::size_t count) { return _scheduledScripts -= count; } bool IsScriptScheduled() const { return _scheduledScripts > 0; } public: /* UnitScript */ @@ -796,7 +796,7 @@ public: if (oldScript) { for (auto& vIt : EnabledHooks) - for (size_t i = 0; i < vIt.size(); ++i) + for (std::size_t i = 0; i < vIt.size(); ++i) if (vIt[i] == oldScript) { vIt.erase(vIt.begin() + i); |