diff options
Diffstat (limited to 'engines/wintermute/ad/ad_response_box.cpp')
-rw-r--r-- | engines/wintermute/ad/ad_response_box.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/ad/ad_response_box.cpp b/engines/wintermute/ad/ad_response_box.cpp index 212802ef3a..38fbd6f95d 100644 --- a/engines/wintermute/ad/ad_response_box.cpp +++ b/engines/wintermute/ad/ad_response_box.cpp @@ -486,11 +486,11 @@ bool AdResponseBox::listen(BaseScriptHolder *param1, uint32 param2) { switch (obj->_type) {
case UI_BUTTON:
- if (scumm_stricmp(obj->_name, "prev") == 0) {
+ if (scumm_stricmp(obj->getName(), "prev") == 0) {
_scrollOffset--;
- } else if (scumm_stricmp(obj->_name, "next") == 0) {
+ } else if (scumm_stricmp(obj->getName(), "next") == 0) {
_scrollOffset++;
- } else if (scumm_stricmp(obj->_name, "response") == 0) {
+ } else if (scumm_stricmp(obj->getName(), "response") == 0) {
if (_waitingScript) _waitingScript->_stack->pushInt(_responses[param2]->_iD);
handleResponse(_responses[param2]);
_waitingScript = NULL;
|