diff options
author | XTZGZoReX <none@none> | 2010-01-29 11:56:48 +0100 |
---|---|---|
committer | XTZGZoReX <none@none> | 2010-01-29 11:56:48 +0100 |
commit | 39a260d10d9fe9ed575602eb45a30c347270e405 (patch) | |
tree | 9b0099799cfac2148a2420bb5784a4d31f413d74 /src/game/AddonMgr.cpp | |
parent | f5e267da1691bf8283fb3175e41307abcf7c41fc (diff) |
* Added actual loading of the `addons` table... This was missing in the original commit.
--HG--
branch : trunk
Diffstat (limited to 'src/game/AddonMgr.cpp')
-rw-r--r-- | src/game/AddonMgr.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/game/AddonMgr.cpp b/src/game/AddonMgr.cpp index 9116f504a1d..afa92c49020 100644 --- a/src/game/AddonMgr.cpp +++ b/src/game/AddonMgr.cpp @@ -49,9 +49,7 @@ void AddonMgr::LoadFromDB() return; } - uint32 total_records = result->GetRowCount(); - - barGoLink bar(total_records); + barGoLink bar(result->GetRowCount()); uint32 count = 0; Field *fields; @@ -61,7 +59,7 @@ void AddonMgr::LoadFromDB() bar.step(); count++; - std::string name = fields[0].GetString(); + std::string name = fields[0].GetCppString(); uint32 crc = fields[1].GetUInt32(); SavedAddon addon(name, crc); |