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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 24 additions and 11 deletions

View file

@ -32,7 +32,8 @@ DoorData const doorData[] =
ObjectData const creatureData[] =
{
{ NPC_KRIKTHIR_THE_GATEWATCHER, DATA_KRIKTHIR_THE_GATEWATCHER_EVENT },
{ NPC_HADRONOX, DATA_HADRONOX_EVENT }
{ NPC_HADRONOX, DATA_HADRONOX_EVENT },
{ 0, 0 }
};
BossBoundaryData const boundaries =

View file

@ -118,7 +118,8 @@ DoorData const doorData[] =
ObjectData const creatureData[] =
{
{ NPC_SINDRAGOSA, DATA_SINDRAGOSA }
{ NPC_SINDRAGOSA, DATA_SINDRAGOSA },
{ 0, 0 }
};
// this doesnt have to only store questgivers, also can be used for related quest spawns