openbsd-ports/games/wesnoth/patches/patch-src_game_cpp
jasper a2735c2a72 - long overdue update of wesnoth to 1.6.5
joint work with tom murphy
thanks to sthen@ for torturing his armish for countless hours.

ok sthen@
2009-11-11 16:01:33 +00:00

17 lines
473 B
Plaintext

$OpenBSD: patch-src_game_cpp,v 1.1 2009/11/11 16:01:34 jasper Exp $
Prevent compilation error on arm:
game.cpp:1307: warning: `int res' might be used uninitialized in this function
--- src/game.cpp.orig Mon Nov 9 13:13:30 2009
+++ src/game.cpp Mon Nov 9 13:13:53 2009
@@ -1304,7 +1304,7 @@ void game_controller::start_wesnothd()
bool game_controller::play_multiplayer()
{
- int res;
+ int res = 0;
state_ = game_state();
state_.campaign_type = "multiplayer";