mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-13 01:20:34 +02:00
Fix GUI object initializing - Point(0,0)
This commit is contained in:
@ -235,7 +235,7 @@ void CGuiHandler::handleEvent(SDL_Event *sEvent)
|
||||
for(std::list<CIntObject*>::iterator i=hlp.begin(); i != hlp.end() && current; i++)
|
||||
{
|
||||
if(!vstd::contains(doubleClickInterested,*i)) continue;
|
||||
if (isItIn(&(*i)->pos,sEvent->motion.x,sEvent->motion.y))
|
||||
if (isItIn(&(*i)->pos, sEvent->motion.x, sEvent->motion.y))
|
||||
{
|
||||
(*i)->onDoubleClick();
|
||||
}
|
||||
|
Reference in New Issue
Block a user