aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2013-05-23 18:04:07 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2013-05-23 18:04:07 +0800
commit31a7a0a90b24539320516a3ff9e1cef981a14977 (patch)
treeb0b2beb55492d2a8e64bee5be8601bdef6e71efa /games
parenta1e6e0ce5a35356d04a1cdc705704e73bbed1ddc (diff)
downloadfreebsd-ports-gnome-31a7a0a90b24539320516a3ff9e1cef981a14977.tar.gz
freebsd-ports-gnome-31a7a0a90b24539320516a3ff9e1cef981a14977.tar.zst
freebsd-ports-gnome-31a7a0a90b24539320516a3ff9e1cef981a14977.zip
- Add patch which fixes segfault in the shop
With this patch, the port becomes valyriatear-0.5.1 essentially, but I'd prefer to not bump portversion and force distfile redownload for such a small single change.
Diffstat (limited to 'games')
-rw-r--r--games/valyriatear/Makefile1
-rw-r--r--games/valyriatear/files/patch-src-modes-shop-shop_sell.cpp16
2 files changed, 17 insertions, 0 deletions
diff --git a/games/valyriatear/Makefile b/games/valyriatear/Makefile
index e196225e2c88..b541e0e33feb 100644
--- a/games/valyriatear/Makefile
+++ b/games/valyriatear/Makefile
@@ -3,6 +3,7 @@
PORTNAME= valyriatear
PORTVERSION= 0.5.0
+PORTREVISION= 1
CATEGORIES= games
USE_GITHUB= yes
diff --git a/games/valyriatear/files/patch-src-modes-shop-shop_sell.cpp b/games/valyriatear/files/patch-src-modes-shop-shop_sell.cpp
new file mode 100644
index 000000000000..c3619799a21a
--- /dev/null
+++ b/games/valyriatear/files/patch-src-modes-shop-shop_sell.cpp
@@ -0,0 +1,16 @@
+diff --git src/modes/shop/shop_sell.cpp src/modes/shop/shop_sell.cpp
+index 9fa3147..17537a2 100644
+--- src/modes/shop/shop_sell.cpp
++++ src/modes/shop/shop_sell.cpp
+@@ -295,10 +295,7 @@ void SellInterface::MakeActive()
+
+ void SellInterface::TransactionNotification()
+ {
+- _PopulateLists();
+-
+- _current_category = _number_categories > 0 ? _number_categories - 1 : 0;
+- _view_mode = SHOP_VIEW_MODE_LIST;
++ Reinitialize();
+ }
+
+