summaryrefslogtreecommitdiffstats
path: root/games/warmux/patches/return-null.patch
diff options
context:
space:
mode:
author Matteo Bernardini2020-03-28 15:26:04 +0100
committer Matteo Bernardini2020-03-28 15:26:04 +0100
commitea43edde1d4617fb627619bf7518163ba171983f (patch)
tree1b0ddc8b44db55aae3a0dfb15904016a8fa43c2b /games/warmux/patches/return-null.patch
parentb622b49c1cf6273e5d73fb1f982bc7e1562b572a (diff)
downloadslackbuilds-current-20200328.1.tar.gz
20200328.1 global branch merge.current-20200328.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/warmux/patches/return-null.patch')
-rw-r--r--games/warmux/patches/return-null.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/games/warmux/patches/return-null.patch b/games/warmux/patches/return-null.patch
new file mode 100644
index 0000000000..851dfcbd16
--- /dev/null
+++ b/games/warmux/patches/return-null.patch
@@ -0,0 +1,11 @@
+--- src/interface/weapon_menu.cpp.orig 2016-05-09 15:22:36.895266463 +0200
++++ src/interface/weapon_menu.cpp 2016-05-09 15:21:38.518476191 +0200
+@@ -391,7 +391,7 @@
+ Weapon * WeaponsMenu::UpdateCurrentOverflyItem(const Polygon * poly)
+ {
+ if (!show)
+- return false;
++ return NULL;
+ const std::vector<PolygonItem *>& items = poly->GetItem();
+ WeaponMenuItem * tmp;
+ Interface::GetInstance()->SetCurrentOverflyWeapon(NULL);