Core/Maps: Fixed dangling reference to a temporary variable

This commit is contained in:
Shauren
2025-04-04 21:48:36 +02:00
parent f94472572a
commit cbad5fd894

View File

@@ -15,12 +15,13 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TRINITY_OBJECTGRIDLOADER_H
#define TRINITY_OBJECTGRIDLOADER_H
#ifndef TRINITY_OBJECT_GRID_LOADER_H
#define TRINITY_OBJECT_GRID_LOADER_H
#include "Cell.h"
#include "Define.h"
#include "GridDefines.h"
#include "Cell.h"
#include "ObjectGuid.h"
class MapObject;
class ObjectGuid;
@@ -89,7 +90,7 @@ class TC_GAME_API PersonalPhaseGridLoader : public ObjectGridLoaderBase
private:
uint32 _phaseId;
ObjectGuid const& _phaseOwner;
ObjectGuid _phaseOwner;
};
//Stop the creatures before unloading the NGrid