diff --git a/source/code/TextManager.hpp b/source/code/TextManager.hpp index 18d3ed3..5e8a4a4 100644 --- a/source/code/TextManager.hpp +++ b/source/code/TextManager.hpp @@ -25,6 +25,7 @@ http://www.blockattack.net #define TEXTMANAGER_HPP #include +#include class TextMessage { private: @@ -67,19 +68,19 @@ public: }; //text popup class TextManager { -public: static const int maxNumberOfTexts = 6*12*2*2; - TextMessage textArray[maxNumberOfTexts]; +public: + std::array textArray; TextManager() { } int addText(int x, int y, const std::string& Text,unsigned int Time) { - int textNumber = 0; - while (textNumber