diff options
-rw-r--r-- | engines/xeen/dialogs.cpp | 2 | ||||
-rw-r--r-- | engines/xeen/dialogs.h | 10 |
2 files changed, 3 insertions, 9 deletions
diff --git a/engines/xeen/dialogs.cpp b/engines/xeen/dialogs.cpp index 72f20d80ad..500f0f73f8 100644 --- a/engines/xeen/dialogs.cpp +++ b/engines/xeen/dialogs.cpp @@ -51,7 +51,7 @@ void ButtonContainer::addButton(const Common::Rect &bounds, int val, } void ButtonContainer::addButton(const Common::Rect &bounds, int val, - uint frameNum, SpriteResource *sprites) { + int frameNum, SpriteResource *sprites) { _buttons.push_back(UIButton(bounds, val, frameNum, sprites, sprites != nullptr)); } diff --git a/engines/xeen/dialogs.h b/engines/xeen/dialogs.h index 6117fbd78d..b4ad77232b 100644 --- a/engines/xeen/dialogs.h +++ b/engines/xeen/dialogs.h @@ -92,15 +92,9 @@ public: void restoreButtons(); void addButton(const Common::Rect &bounds, int val, - SpriteResource *sprites); + SpriteResource *sprites = nullptr); void addButton(const Common::Rect &bounds, int val, - uint frameNum, SpriteResource *sprites); - void addButton(const Common::Rect &bounds, int val) { - addButton(bounds, val, nullptr); - } - void addButton(const Common::Rect &bounds, int val, uint frameNum) { - addButton(bounds, val, frameNum, nullptr); - } + int frameNum, SpriteResource *sprites = nullptr); void addPartyButtons(XeenEngine *vm); |