- 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.
This commit is contained in:
Dmitry Marakasov 2013-05-23 10:04:07 +00:00
parent d2aa15c252
commit 51260e7016
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=318861
2 changed files with 17 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= valyriatear
PORTVERSION= 0.5.0
PORTREVISION= 1
CATEGORIES= games
USE_GITHUB= yes

View File

@ -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();
}