From cd867eadef4d90d7ca42580600259db92a5eaef0 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Tue, 8 Feb 2011 22:52:35 +0300 Subject: [PATCH] [11121] Really create records in `world` table for non-instanceable maps. --- src/game/Map.cpp | 6 ++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/game/Map.cpp b/src/game/Map.cpp index b4abe045d..ed5e47287 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -1275,6 +1275,12 @@ void Map::CreateInstanceData(bool load) } delete result; } + else + { + // for non-instanceable map always add data to table if not found, later code expected that for map in `word` exist always after load + if (!Instanceable()) + CharacterDatabase.PExecute("INSERT INTO world VALUES ('%u', '')", GetId()); + } } else { diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 8ead35a45..57834728f 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 "11120" + #define REVISION_NR "11121" #endif // __REVISION_NR_H__