diff --git a/src/game/boe.text.cpp b/src/game/boe.text.cpp index 0ddd7515..133dc3a3 100644 --- a/src/game/boe.text.cpp +++ b/src/game/boe.text.cpp @@ -576,7 +576,7 @@ void set_stat_window(eItemWinMode new_stat, bool record) { item_sbar->setMaximum(array_pos); break; default: - item_sbar->setMaximum(INVENTORY_SIZE - LINES_IN_ITEM_WIN); + item_sbar->setMaximum(cPlayer::INVENTORY_SIZE - LINES_IN_ITEM_WIN); break; } item_sbar->setPosition(0); diff --git a/src/universe/pc.hpp b/src/universe/pc.hpp index 8e1db49f..e9010c90 100644 --- a/src/universe/pc.hpp +++ b/src/universe/pc.hpp @@ -77,8 +77,8 @@ class cPlayer : public iLiving { // It only does this (and should ever do this) in remove_pc and replace_pc! // Sadly there is no good way to friend just those two functions. friend class cParty; - static const int INVENTORY_SIZE = 24; public: + static const int INVENTORY_SIZE = 24; // A nice convenient bitset with just the low 30 bits set, for initializing spells static const uint32_t basic_spells; // This class is shared between the game and the editors, but it should only show help dialogs