From afe5c9aef802788b334709d2fa10fa48e6558989 Mon Sep 17 00:00:00 2001 From: Jolan Date: Tue, 15 Sep 2009 06:57:18 +0400 Subject: [PATCH] [8500] Fixed long existed bug with vmaps unloading. When order of coordinates has been updated for loading case, unloading part escape fixing in past. Signed-off-by: VladimirMangos --- src/game/Map.cpp | 3 +-- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/game/Map.cpp b/src/game/Map.cpp index 544c62a31..336c4f6e4 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -1057,8 +1057,7 @@ bool Map::UnloadGrid(const uint32 &x, const uint32 &y, bool pForce) GridMaps[gx][gy]->unloadData(); delete GridMaps[gx][gy]; } - // x and y are swapped - VMAP::VMapFactory::createOrGetVMapManager()->unloadMap(GetId(), gy, gx); + VMAP::VMapFactory::createOrGetVMapManager()->unloadMap(GetId(), gx, gy); } else ((MapInstanced*)m_parentMap)->RemoveGridMapReference(GridPair(gx, gy)); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index cc092039e..4805b8b57 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8499" + #define REVISION_NR "8500" #endif // __REVISION_NR_H__