Jump to content

[Compile Error] Linux Wont Compile


Recommended Posts

Posted

../../../src/game/LootMgr.cpp:28: error: expected initializer before 'const'

../../../src/game/LootMgr.cpp: In member function 'bool LootStoreItem::Roll(bool) const':

../../../src/game/LootMgr.cpp:250: error: 'qualityToRate' was not declared in this scope

make[3]: *** [LootMgr.o] Error 1

Posted

Same Problem here :(

Rev: 9631

../../../src/game/LootMgr.cpp:28: error: expected initializer before ‘const’

../../../src/game/LootMgr.cpp: In member function ‘bool LootStoreItem::Roll(bool) const’:

../../../src/game/LootMgr.cpp:250: error: ‘qualityToRate’ was not declared in this scope

make[3]: *** [LootMgr.o] Fehler 1

MfG

Blackbandit

Posted
diff --git a/src/game/LootMgr.cpp b/src/game/LootMgr.cpp
index d4dde29..abd73ca 100644
--- a/src/game/LootMgr.cpp
+++ b/src/game/LootMgr.cpp
@@ -25,7 +25,7 @@
#include "SharedDefines.h"
#include "SpellMgr.h"

-static eConfigFLoatValues const qualityToRate[MAX_ITEM_QUALITY] = {
+static eConfigFloatValues const qualityToRate[MAX_ITEM_QUALITY] = {
    CONFIG_FLOAT_RATE_DROP_ITEM_POOR,                                    // ITEM_QUALITY_POOR
    CONFIG_FLOAT_RATE_DROP_ITEM_NORMAL,                                  // ITEM_QUALITY_NORMAL
    CONFIG_FLOAT_RATE_DROP_ITEM_UNCOMMON,                                // ITEM_QUALITY_UNCOMMON

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use