[11121] Really create records in world table for non-instanceable maps.

This commit is contained in:
VladimirMangos 2011-02-08 22:52:35 +03:00
parent e3387ec6b0
commit cd867eadef
2 changed files with 7 additions and 1 deletions

View file

@ -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
{

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11120"
#define REVISION_NR "11121"
#endif // __REVISION_NR_H__