diff options
author | megamage <none@none> | 2009-02-12 17:24:09 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-12 17:24:09 -0600 |
commit | 4d687687d63b7794308e0d0b1935194cdefed3ba (patch) | |
tree | 9084fc11e67b3b503ca1f358f1085833106331a1 /src/game/ObjectMgr.cpp | |
parent | e0cb2a8db65a103774781a5a6a44789c831e0d8e (diff) | |
parent | dfc3d115c5d5b608b0b4a8e0bff896d674e92482 (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r-- | src/game/ObjectMgr.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 97eed337799..7c27864bc31 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -7906,35 +7906,35 @@ CreatureInfo const *GetCreatureInfo(uint32 id) void ObjectMgr::LoadTransportEvents() { - QueryResult *result = WorldDatabase.Query("SELECT entry, waypoint_id, event_id FROM transport_events"); + QueryResult *result = WorldDatabase.Query("SELECT entry, waypoint_id, event_id FROM transport_events"); if( !result ) { barGoLink bar1( 1 ); bar1.step(); - sLog.outString( "\n>> Transport events table is empty \n" ); + sLog.outString( "\n>> Transport events table is empty \n" ); return; } - barGoLink bar1( result->GetRowCount() ); + barGoLink bar1( result->GetRowCount() ); do { bar1.step(); - Field *fields = result->Fetch(); + Field *fields = result->Fetch(); - //Load event values + //Load event values uint32 entry = fields[0].GetUInt32(); uint32 waypoint_id = fields[1].GetUInt32(); - uint32 event_id = fields[2].GetUInt32(); + uint32 event_id = fields[2].GetUInt32(); - uint32 event_count = (entry*100)+waypoint_id; - TransportEventMap[event_count] = event_id; - } - while(result->NextRow()); + uint32 event_count = (entry*100)+waypoint_id; + TransportEventMap[event_count] = event_id; + } + while(result->NextRow()); - sLog.outString( "\n>> Loaded %u transport events \n", result->GetRowCount() ); + sLog.outString( "\n>> Loaded %u transport events \n", result->GetRowCount() ); - delete result; + delete result; } |