From a4e8ffb1520e7726cdec1d7f307c397cdaec790e Mon Sep 17 00:00:00 2001 From: cyberium Date: Sun, 11 Sep 2016 00:55:47 +0100 Subject: [PATCH] Format specifiers was not correct in lootmgr --- src/game/Object/LootMgr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/Object/LootMgr.cpp b/src/game/Object/LootMgr.cpp index 6b8330ff..f392ee58 100644 --- a/src/game/Object/LootMgr.cpp +++ b/src/game/Object/LootMgr.cpp @@ -138,7 +138,7 @@ void LootStore::LoadLootTable() if (maxcount > std::numeric_limits::max()) { - sLog.outErrorDb("Table '%s' entry %d item %d: maxcount value (%u) to large. must be less %u - skipped", GetName(), entry, item, maxcount, std::numeric_limits::max()); + sLog.outErrorDb("Table '%s' entry %u item %u: maxcount value (%u) to large. must be less than %u - skipped", GetName(), entry, item, maxcount, uint32(std::numeric_limits::max())); continue; // error already printed to log/console. } @@ -147,13 +147,13 @@ void LootStore::LoadLootTable() const PlayerCondition* condition = sConditionStorage.LookupEntry(conditionId); if (!condition) { - sLog.outErrorDb("Table `%s` for entry %u, item %u has condition_id %u that does not exist in `conditions`, ignoring", GetName(), entry, item, conditionId); + sLog.outErrorDb("Table `%s` for entry %u, item %u has condition_id %u that does not exist in `conditions`, ignoring", GetName(), entry, item, uint32(conditionId)); continue; } if (mincountOrRef < 0 && !PlayerCondition::CanBeUsedWithoutPlayer(conditionId)) { - sLog.outErrorDb("Table '%s' entry %u mincountOrRef %i < 0 and has condition %u that requires a player and is not supported, skipped", GetName(), entry, mincountOrRef, conditionId); + sLog.outErrorDb("Table '%s' entry %u mincountOrRef %i < 0 and has condition %u that requires a player and is not supported, skipped", GetName(), entry, mincountOrRef, uint32(conditionId)); continue; } }