diff options
author | Paul Gilbert | 2018-01-27 22:02:35 -0500 |
---|---|---|
committer | Paul Gilbert | 2018-01-27 22:02:35 -0500 |
commit | 3a937f19c0a5e347c801c62d345475be082f9e41 (patch) | |
tree | 4799fa67174e595d484a065f5cdf7309baa3d52c /engines/xeen | |
parent | 6160f3842c96f5548c228c18a55ff5a5a79e02db (diff) | |
download | scummvm-rg350-3a937f19c0a5e347c801c62d345475be082f9e41.tar.gz scummvm-rg350-3a937f19c0a5e347c801c62d345475be082f9e41.tar.bz2 scummvm-rg350-3a937f19c0a5e347c801c62d345475be082f9e41.zip |
XEEN: Second compilation fix
Diffstat (limited to 'engines/xeen')
-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); |