From bb5d5bef365c65fed4fa32c3ac2ce384b2ea4e52 Mon Sep 17 00:00:00 2001 From: Fedja Beader Date: Thu, 20 Feb 2025 22:02:00 +0000 Subject: Convert navigateTo to take a Position instead of two integers. Tile coordinates dance in pairs, so let's pair them up. also grows exe size by about 3K, hope this will go away when the rest is converted to Position as well. Note: on my local debug build only. Not on gcc10 CI. Squashed with: * Should it be mNavigateDest or mNavigateTo? Hmm, the jury is still out there ... **** mana/plus!116 --- src/gui/widgets/avatarlistbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/widgets/avatarlistbox.cpp') diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index 66c1b12c1..6c18643ba 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -629,7 +629,7 @@ void AvatarListBox::mousePressed(MouseEvent &event) else #endif // TMWA_SUPPORT { - localPlayer->navigateTo(ava->getX(), ava->getY()); + localPlayer->navigateTo({ava->getX(), ava->getY()}); } } else if (eventButton == MouseButton::RIGHT) -- cgit v1.2.3-70-g09d2