fix(Core/Scripts): Fix scripts where LoadObjectData can leave arrays boundaries. (#17070)

* fix(Core/Scripts): Fix scripts where LoadObjectData can leave arrays boundaries.

* Fix build
This commit is contained in:
Anton Popovichenko
2023-08-25 14:15:07 +02:00
committed by GitHub
parent 6b583089f3
commit f4658a1df2
13 changed files with 24 additions and 11 deletions

View File

@@ -31,9 +31,10 @@ const Position PortalLocation[4] =
{ -1930.9106f, 7183.5970f, 23.007639f, 3.59537f }
};
ObjectData const creatureData[1] =
ObjectData const creatureData[] =
{
{ NPC_MEDIVH, DATA_MEDIVH }
{ NPC_MEDIVH, DATA_MEDIVH },
{ 0, 0 }
};
class instance_the_black_morass : public InstanceMapScript

View File

@@ -21,7 +21,8 @@
ObjectData const creatureData[] =
{
{ NPC_ONYXIA, DATA_ONYXIA }
{ NPC_ONYXIA, DATA_ONYXIA },
{ 0, 0 }
};
class instance_onyxias_lair : public InstanceMapScript

View File

@@ -36,6 +36,7 @@ ObjectData const creatureData[] =
{ NPC_YEGGETH, DATA_YEGGETH },
{ NPC_PAKKON, DATA_PAKKON },
{ NPC_ZERRAN, DATA_ZERRAN },
{ 0, 0 }
};
enum RajaxxWaveEvent

View File

@@ -35,7 +35,8 @@ ObjectData const creatureData[] =
{ NPC_MASTERS_EYE, DATA_MASTERS_EYE },
{ NPC_VEKLOR, DATA_VEKLOR },
{ NPC_VEKNILASH, DATA_VEKNILASH },
{ NPC_VISCIDUS, DATA_VISCIDUS }
{ NPC_VISCIDUS, DATA_VISCIDUS },
{ 0, 0 }
};
DoorData const doorData[] =