[Quest API] Add GetSpawn() to Perl and Lua (#4702)

* [Quest API] Add GetSpawn() to Perl and Lua

* Push

* Update npc.h
This commit is contained in:
Alex King
2025-02-21 23:57:41 -05:00
committed by GitHub
parent aa4869c6e9
commit 486c7c44be
5 changed files with 18 additions and 4 deletions
+1 -4
View File
@@ -2751,10 +2751,7 @@ void NPC::LevelScale() {
uint32 NPC::GetSpawnPointID() const
{
if (respawn2) {
return respawn2->GetID();
}
return 0;
return respawn2 ? respawn2->GetID() : 0;
}
void NPC::NPCSlotTexture(uint8 slot, uint32 texture)