Core: Fix a minor mistake from previous mistake and adjust some more field-types
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user