summaryrefslogtreecommitdiff
path: root/src/server/scripts/Events
diff options
context:
space:
mode:
authorFrancesco Borzì <borzifrancesco@gmail.com>2020-09-14 17:31:12 +0200
committerGitHub <noreply@github.com>2020-09-14 17:31:12 +0200
commitb61ae8abcd1e2a2ebd948878aecf60fb4b7a9693 (patch)
tree74db784d790a08b8c33fac161e77f52b7fc80635 /src/server/scripts/Events
parent80b149b218b23e2da6c993f72051b8ca94925bc3 (diff)
fix(Core/Misc): all GCC warnings (#3457)
Diffstat (limited to 'src/server/scripts/Events')
-rw-r--r--src/server/scripts/Events/hallows_end.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/scripts/Events/hallows_end.cpp b/src/server/scripts/Events/hallows_end.cpp
index 285e5636f3..eb7a09c55b 100644
--- a/src/server/scripts/Events/hallows_end.cpp
+++ b/src/server/scripts/Events/hallows_end.cpp
@@ -408,8 +408,8 @@ public:
{
allowQuest = true;
eventStarted = 1;
- float x, y, z, o;
- uint32 path;
+ float x = 0, y = 0, z = 0, o = 0;
+ uint32 path = 0;
GetInitXYZ(x, y, z, o, path);
if (Creature* cr = me->SummonCreature(NPC_SHADE_OF_HORSEMAN, x, y, z, o, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 10000))
{
@@ -602,6 +602,7 @@ class npc_hallows_end_soh : public CreatureScript
case 235434: x = 360.9f; y = -4735.5f; z = 11.773f; break;
case 235435: x = 2229.4f; y = 263.1f; z = 36.13f; break;
case 235436: x = 9532.9f; y = -6833.8f; z = 18.5f; break;
+ default: x = 0; y = 0; z = 0; break;
}
}