diff options
| author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2020-07-31 20:53:13 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-31 22:53:13 +0200 |
| commit | 7cf122fc2a604bae77d0b935536c41ec9203e62d (patch) | |
| tree | 029e18afdceae5ebab686103ee9050a6c6727688 /src/server/scripts/World | |
| parent | 5b863acf9285d675a61819d939f38297f49d5c92 (diff) | |
Core/Misc: Fix static analysis issues (#25178)
Diffstat (limited to 'src/server/scripts/World')
| -rw-r--r-- | src/server/scripts/World/npcs_special.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/server/scripts/World/npcs_special.cpp b/src/server/scripts/World/npcs_special.cpp index ac672eef744..d609382e54f 100644 --- a/src/server/scripts/World/npcs_special.cpp +++ b/src/server/scripts/World/npcs_special.cpp @@ -996,7 +996,15 @@ public: break; } - Reset(); + Initialize(); + } + + void Initialize() + { + IsHealed = false; + CanRun = false; + + RunAwayTimer = 5000; } ObjectGuid CasterGUID; @@ -1011,10 +1019,7 @@ public: { CasterGUID.Clear(); - IsHealed = false; - CanRun = false; - - RunAwayTimer = 5000; + Initialize(); me->SetStandState(UNIT_STAND_STATE_KNEEL); // expect database to have RegenHealth=0 |
