Core: Fix a minor mistake from previous mistake and adjust some more field-types

This commit is contained in:
click
2012-03-29 07:10:21 +02:00
parent 0ce62a159d
commit b5fb1b5b64
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -220,7 +220,7 @@ void GameEventMgr::LoadFromDB()
{
Field* fields = result->Fetch();
uint16 event_id = fields[0].GetUInt8();
uint8 event_id = fields[0].GetUInt8();
if (event_id == 0)
{
sLog->outErrorDb("`game_event` game event entry 0 is reserved and can't be used.");
@@ -283,7 +283,7 @@ void GameEventMgr::LoadFromDB()
{
Field* fields = result->Fetch();
uint16 event_id = fields[0].GetUInt8();
uint8 event_id = fields[0].GetUInt8();
if (event_id >= mGameEvent.size())
{
+1 -1
View File
@@ -1940,7 +1940,7 @@ bool Guild::LoadBankEventLogFromDB(Field* fields)
bool Guild::LoadBankTabFromDB(Field* fields)
{
uint32 tabId = fields[1].GetUInt8();
uint8 tabId = fields[1].GetUInt8();
if (tabId >= _GetPurchasedTabsSize())
{
sLog->outError("Invalid tab (tabId: %u) in guild bank, skipped.", tabId);