Core/DBLayer: Correct few more wrong read types (No. 4)

DB/World: Some consistency in the ints "length" field (not really a length)

All world dbs checked
This commit is contained in:
Nay
2012-03-27 21:36:16 +01:00
parent 8e87fe2744
commit 729f419af1
8 changed files with 97 additions and 33 deletions

View File

@@ -30,7 +30,8 @@ void SystemMgr::LoadScriptTexts()
sLog->outString("TSCR: Loading Script Texts additional data...");
uint32 oldMSTime = getMSTime();
// 0 1 2 3
QueryResult result = WorldDatabase.Query("SELECT entry, sound, type, language, emote FROM script_texts");
if (!result)
@@ -49,9 +50,9 @@ void SystemMgr::LoadScriptTexts()
int32 iId = pFields[0].GetInt32();
temp.uiSoundId = pFields[1].GetUInt32();
temp.uiType = pFields[2].GetUInt32();
temp.uiLanguage = pFields[3].GetUInt32();
temp.uiEmote = pFields[4].GetUInt32();
temp.uiType = pFields[2].GetUInt8();
temp.uiLanguage = pFields[3].GetUInt8();
temp.uiEmote = pFields[4].GetUInt16();
if (iId >= 0)
{
@@ -164,6 +165,7 @@ void SystemMgr::LoadScriptWaypoints()
sLog->outString("TSCR: Loading Script Waypoints for " UI64FMTD " creature(s)...", uiCreatureCount);
// 0 1 2 3 4 5
result = WorldDatabase.Query("SELECT entry, pointid, location_x, location_y, location_z, waittime FROM script_waypoint ORDER BY pointid");
if (!result)