Skip to content

Commit

Permalink
warmux: add patch to fix build with gcc6
Browse files Browse the repository at this point in the history
  • Loading branch information
globin committed Jan 25, 2017
1 parent 41cb459 commit bc08b94
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pkgs/games/warmux/gcc-fix.patch
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,18 @@ Author: Felix Geyer <debfx-pkg@fobos.de>
#include <WARMUX_types.h>
#include <WARMUX_network.h>
#include <WARMUX_index_server.h>

Description: Fix conversion error in gcc 6.
Author: Robin Gloster <mail@glob.in>

--- warmux-11.04.1.orig/src/interface/weapon_menu.cpp 2017-01-19 23:06:32.401035923 +0100
+++ warmux-11.04.1/src/interface/weapon_menu.cpp 2017-01-19 23:07:14.245866593 +0100
@@ -391,7 +391,7 @@
Weapon * WeaponsMenu::UpdateCurrentOverflyItem(const Polygon * poly)
{
if (!show)
- return false;
+ return nullptr;
const std::vector<PolygonItem *>& items = poly->GetItem();
WeaponMenuItem * tmp;
Interface::GetInstance()->SetCurrentOverflyWeapon(NULL);

0 comments on commit bc08b94

Please sign in to comment.