diff --git a/src/events/Popups.cpp b/src/events/Popups.cpp index 7a4f4885..dde2d46d 100644 --- a/src/events/Popups.cpp +++ b/src/events/Popups.cpp @@ -23,8 +23,8 @@ void addPopupGlobalCoords(void* pPopup, int* x, int* y) { auto curPopup = PPOPUP; while (true) { - px += curPopup->popup->geometry.x; - py += curPopup->popup->geometry.y; + px += curPopup->popup->current.geometry.x; + py += curPopup->popup->current.geometry.y; if (curPopup->parentPopup) { curPopup = curPopup->parentPopup;