fix(Core/GameObject): Segment fault error fix (#8824)
fix(Core/GameObject): Segment fault error fix (#8824)

Closes https://github.com/azerothcore/azerothcore-wotlk/issues/8819
azerothcore/azerothcore-wotlk,ShinDarth/azerothcore-wotlk,azerothcore/azerothcore-wotlk,jokerlfm/azerothcore-wotlk,jokerlfm/azerothcore-wotlk,mygithome002/azerothcore-wotlk,Nefertumm/azerothcore-wotlk,Nefertumm/azerothcore-wotlk,Nefertumm/azerothcore-wotlk,Helias/azerothcore-wotlk,mygithome002/azerothcore-wotlk,jokerlfm/azerothcore-wotlk,jokerlfm/azerothcore-wotlk,mygithome002/azerothcore-wotlk,azerothcore/azerothcore-wotlk,Nefertumm/azerothcore-wotlk,azerothcore/azerothcore-wotlk,ShinDarth/azerothcore-wotlk,Helias/azerothcore-wotlk,Nefertumm/azerothcore-wotlk,mygithome002/azerothcore-wotlk,Helias/azerothcore-wotlk,azerothcore/azerothcore-wotlk,mygithome002/azerothcore-wotlk,ShinDarth/azerothcore-wotlk,Nefertumm/azerothcore-wotlk,jokerlfm/azerothcore-wotlk,ShinDarth/azerothcore-wotlk,Helias/azerothcore-wotlk,azerothcore/azerothcore-wotlk,Helias/azerothcore-wotlk,mygithome002/azerothcore-wotlk,Helias/azerothcore-wotlk,jokerlfm/azerothcore-wotlk