Skip to content
Permalink
Browse files

C++ is weird

  • Loading branch information
SupSuper committed Oct 25, 2018
1 parent 0b5964a commit 3bb608bdcbc3c3170cbc1bdaadf8bd4117da64dd
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/Ufopaedia/UfopaediaStartState.cpp
@@ -33,6 +33,9 @@

namespace OpenXcom
{
const size_t UfopaediaStartState::CAT_MIN_BUTTONS;
const size_t UfopaediaStartState::CAT_MAX_BUTTONS;

UfopaediaStartState::UfopaediaStartState() : _offset(0), _scroll(0), _cats(_game->getMod()->getUfopaediaCategoryList())
{
_screen = false;
@@ -54,7 +57,7 @@ namespace OpenXcom

// set buttons
int y = 50;
int numButtons = std::min(_cats.size(), CAT_MAX_BUTTONS);
size_t numButtons = std::min(_cats.size(), CAT_MAX_BUTTONS);
if (numButtons > CAT_MIN_BUTTONS)
y -= 13 * (numButtons - CAT_MIN_BUTTONS);

0 comments on commit 3bb608b

Please sign in to comment.
You can’t perform that action at this time.