Core/DBLayer: Match field type reads in core with data types in db for prepared statements
This commit is contained in:
@@ -455,7 +455,7 @@ ChatCommand* ChatHandler::getCommandTable()
|
|||||||
Field* fields = result->Fetch();
|
Field* fields = result->Fetch();
|
||||||
std::string name = fields[0].GetString();
|
std::string name = fields[0].GetString();
|
||||||
|
|
||||||
SetDataForCommandInTable(commandTableCache, name.c_str(), fields[1].GetUInt16(), fields[2].GetString(), name);
|
SetDataForCommandInTable(commandTableCache, name.c_str(), fields[1].GetUInt8(), fields[2].GetString(), name);
|
||||||
|
|
||||||
} while (result->NextRow());
|
} while (result->NextRow());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2775,7 +2775,7 @@ void World::LoadDBAllowedSecurityLevel()
|
|||||||
PreparedQueryResult result = LoginDatabase.Query(stmt);
|
PreparedQueryResult result = LoginDatabase.Query(stmt);
|
||||||
|
|
||||||
if (result)
|
if (result)
|
||||||
SetPlayerSecurityLimit(AccountTypes(result->Fetch()->GetUInt16()));
|
SetPlayerSecurityLimit(AccountTypes(result->Fetch()->GetUInt8()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void World::SetPlayerSecurityLimit(AccountTypes _sec)
|
void World::SetPlayerSecurityLimit(AccountTypes _sec)
|
||||||
|
|||||||
Reference in New Issue
Block a user