Core/DBLayer: Fix remaining errors in loading world tables and a couple of them in characters database

Also removed World::LoadIp2nation(), it was not doing anything.
Closes #5897
This commit is contained in:
Nay
2012-03-28 00:38:24 +01:00
parent 76397cf931
commit f44e6834df
7 changed files with 13 additions and 32 deletions
+3 -3
View File
@@ -283,7 +283,7 @@ void GameEventMgr::LoadFromDB()
{
Field* fields = result->Fetch();
uint16 event_id = fields[0].GetUInt16();
uint16 event_id = fields[0].GetUInt8();
if (event_id >= mGameEvent.size())
{
@@ -469,7 +469,7 @@ void GameEventMgr::LoadFromDB()
Field* fields = result->Fetch();
uint32 guid = fields[0].GetUInt32();
uint16 event_id = fields[1].GetUInt16();
uint16 event_id = fields[1].GetUInt8();
if (event_id >= mGameEventModelEquip.size())
{
@@ -982,7 +982,7 @@ void GameEventMgr::Initialize()
{
Field* fields = result->Fetch();
uint32 maxEventId = fields[0].GetUInt16();
uint32 maxEventId = fields[0].GetUInt8();
// Id starts with 1 and vector with 0, thus increment
maxEventId++;