From 0f73e68f15d6dc740678f6ba3956df45bf4733c6 Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 23 Nov 2000 16:46:29 +0000 Subject: [PATCH] --- source/gui/gbutton.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/gui/gbutton.cpp b/source/gui/gbutton.cpp index df54062b8..f1febed81 100644 --- a/source/gui/gbutton.cpp +++ b/source/gui/gbutton.cpp @@ -193,7 +193,7 @@ void CGUICycleButton::think(int _frames) ASSERT(getTarget()); ASSERT(getData()); - CGUIToggleButton::think(_frames); + CGUIObject::think(_frames); if(isSelected()) { int pad; @@ -210,11 +210,11 @@ void CGUICycleButton::think(int _frames) do { tmp=*data; - if(*target==*data) + data++; + if(*target==tmp) { break; } - data++; } while(tmp<*data); if(tmp>*data)