diff options
| author | jackpoz <giacomopoz@gmail.com> | 2014-03-22 14:54:32 +0100 |
|---|---|---|
| committer | jackpoz <giacomopoz@gmail.com> | 2014-03-22 14:54:32 +0100 |
| commit | 6dcd8c8545a65a7bfbd0daaa16f650d8c3a90262 (patch) | |
| tree | 522298afe00a5e52f0013de09b740818112f06d5 /src/server/scripts/EasternKingdoms/AlteracValley | |
| parent | 409f4bffd59af41e1d75b4fb4d2bef038eea9552 (diff) | |
Core/Misc: Fix some static analysis issues
Fix some static analysis issues about:
- uninitialized values, most of which are false positives, always initialized before being accessed
- unchecked return values
- dead code never executed
- bad formatting leading to wrong behavior
Please ensure EventMap is never used with event id set to 0 or those events will never execute.
Diffstat (limited to 'src/server/scripts/EasternKingdoms/AlteracValley')
| -rw-r--r-- | src/server/scripts/EasternKingdoms/AlteracValley/boss_balinda.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/server/scripts/EasternKingdoms/AlteracValley/boss_balinda.cpp b/src/server/scripts/EasternKingdoms/AlteracValley/boss_balinda.cpp index ab135a2fd78..0b031f54ea0 100644 --- a/src/server/scripts/EasternKingdoms/AlteracValley/boss_balinda.cpp +++ b/src/server/scripts/EasternKingdoms/AlteracValley/boss_balinda.cpp @@ -50,7 +50,12 @@ public: struct npc_water_elementalAI : public ScriptedAI { - npc_water_elementalAI(Creature* creature) : ScriptedAI(creature) { } + npc_water_elementalAI(Creature* creature) : ScriptedAI(creature) + { + waterBoltTimer = 3 * IN_MILLISECONDS; + resetTimer = 5 * IN_MILLISECONDS; + balindaGUID = 0; + } uint32 waterBoltTimer; uint64 balindaGUID; |
