Commit 149e0bfb authored by edo9300's avatar edo9300

Fix panel

parent bc3adbbb
......@@ -1730,7 +1730,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
hovered_location = 0;
ClientCard* mcard = 0;
int mplayer = -1;
if(!panel || !panel->isVisible() || !panel->getRelativePosition().isPointInside(pos)) {
if(!panel || !panel->isVisible() || !panel->getRelativePosition().isPointInside(mousepos)) {
GetHoverField(x, y);
if(hovered_location & 0xe)
mcard = GetCard(hovered_controler, hovered_location, hovered_sequence);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment