git: 11ada88f769b - main - games/wyrmgus: update to 5.2.4

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Thu, 18 Nov 2021 21:17:26 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=11ada88f769b27e6516836998934c36befc7be57

commit 11ada88f769b27e6516836998934c36befc7be57
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2021-11-18 12:36:10 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2021-11-18 20:51:07 +0000

    games/wyrmgus: update to 5.2.4
---
 games/wyrmgus/Makefile                    |  2 +-
 games/wyrmgus/distinfo                    |  6 +++---
 games/wyrmgus/files/patch-src_map_map.cpp | 19 +++++++++++++++++++
 3 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/games/wyrmgus/Makefile b/games/wyrmgus/Makefile
index fd155ad320af..2545426c3812 100644
--- a/games/wyrmgus/Makefile
+++ b/games/wyrmgus/Makefile
@@ -1,7 +1,7 @@
 # Created by: Travis Poppe <tlp@liquidx.org>
 
 PORTNAME=	wyrmgus
-PORTVERSION=	5.2.3
+PORTVERSION=	5.2.4
 DISTVERSIONPREFIX=	v
 CATEGORIES=	games devel
 
diff --git a/games/wyrmgus/distinfo b/games/wyrmgus/distinfo
index 2b7ad4baa972..f3ea390e9f55 100644
--- a/games/wyrmgus/distinfo
+++ b/games/wyrmgus/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1634737462
-SHA256 (Andrettin-Wyrmgus-v5.2.3_GH0.tar.gz) = ae9a5dc0c9ddd48aedce2206a631cd59f4dc9af6737204314d2c12058512a380
-SIZE (Andrettin-Wyrmgus-v5.2.3_GH0.tar.gz) = 1579265
+TIMESTAMP = 1637182313
+SHA256 (Andrettin-Wyrmgus-v5.2.4_GH0.tar.gz) = a7be284d1cc4da6ca6bfd286b1629776e174a5b42276bf7206674d888bd3bc44
+SIZE (Andrettin-Wyrmgus-v5.2.4_GH0.tar.gz) = 1585986
diff --git a/games/wyrmgus/files/patch-src_map_map.cpp b/games/wyrmgus/files/patch-src_map_map.cpp
new file mode 100644
index 000000000000..99e79113da65
--- /dev/null
+++ b/games/wyrmgus/files/patch-src_map_map.cpp
@@ -0,0 +1,19 @@
+--- src/map/map.cpp.orig	2021-11-17 14:34:51 UTC
++++ src/map/map.cpp
+@@ -3759,6 +3759,7 @@ void CMap::clear_paths_between_subtemplates(const int 
+ 	const CMapLayer *map_layer = this->MapLayers[z].get();
+ 
+ 	for (const auto &[subtemplate, subtemplate_rect] : map_layer->subtemplate_areas) {
++		const auto& subtemplate_ = subtemplate;
+ 		const QPoint min_pos = subtemplate_rect.topLeft();
+ 		const QPoint max_pos = subtemplate_rect.bottomRight();
+ 
+@@ -3788,7 +3789,7 @@ void CMap::clear_paths_between_subtemplates(const int 
+ 				return;
+ 			}
+ 
+-			subtemplate_path_start_points[subtemplate].push_back(std::move(adjacent_pos));
++			subtemplate_path_start_points[subtemplate_].push_back(std::move(adjacent_pos));
+ 		});
+ 	}
+