fix(Core/Object): Fix WorldObject::SetZoneScript unsafe cast to InstanceMap (#11226)
fix(Core/Object): Fix WorldObject::SetZoneScript unsafe cast to InstanceMap (#11226)

* cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/e9992066a5ccd7f085a56de09ea027240e8da873)

Co-Authored-By: HelloKitty <824add8bb9ef28fd1640632e4583ffeae1547e45@users.noreply.github.com>

Co-authored-by: HelloKitty <824add8bb9ef28fd1640632e4583ffeae1547e45@users.noreply.github.com>
jokerlfm/azerothcore-wotlk,Nefertumm/azerothcore-wotlk,jokerlfm/azerothcore-wotlk,Nefertumm/azerothcore-wotlk,mygithome002/azerothcore-wotlk,mygithome002/azerothcore-wotlk,azerothcore/azerothcore-wotlk,Helias/azerothcore-wotlk,mygithome002/azerothcore-wotlk,Nefertumm/azerothcore-wotlk,Helias/azerothcore-wotlk,azerothcore/azerothcore-wotlk,mygithome002/azerothcore-wotlk,mygithome002/azerothcore-wotlk,Nefertumm/azerothcore-wotlk,azerothcore/azerothcore-wotlk,jokerlfm/azerothcore-wotlk,azerothcore/azerothcore-wotlk,Helias/azerothcore-wotlk,Helias/azerothcore-wotlk,azerothcore/azerothcore-wotlk,Nefertumm/azerothcore-wotlk,jokerlfm/azerothcore-wotlk,jokerlfm/azerothcore-wotlk,Helias/azerothcore-wotlk,Helias/azerothcore-wotlk,azerothcore/azerothcore-wotlk,mygithome002/azerothcore-wotlk,jokerlfm/azerothcore-wotlk,Nefertumm/azerothcore-wotlk