mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user