mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[11121] Really create records in world table for non-instanceable maps.
This commit is contained in:
parent
e3387ec6b0
commit
cd867eadef
2 changed files with 7 additions and 1 deletions
|
|
@ -1275,6 +1275,12 @@ void Map::CreateInstanceData(bool load)
|
||||||
}
|
}
|
||||||
delete result;
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11120"
|
#define REVISION_NR "11121"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue