openbsd-ports/games/wesnoth/patches/patch-src_game_cpp
jasper 3ebfa6e605 - update wesnoth to 1.8 series
- switch to new depends

looks ok to sthen,
tested by many on ports@
2010-10-12 20:33:17 +00:00

17 lines
490 B
Plaintext

$OpenBSD: patch-src_game_cpp,v 1.2 2010/10/12 20:33:18 jasper Exp $
Prevent compilation error on arm:
game.cpp:1307: warning: `int res' might be used uninitialized in this function
--- src/game.cpp.orig Sun Jul 18 12:10:00 2010
+++ src/game.cpp Wed Aug 18 20:36:32 2010
@@ -1157,7 +1157,7 @@ void game_controller::start_wesnothd()
bool game_controller::play_multiplayer()
{
- int res;
+ int res = 0;
state_ = game_state();
state_.classification().campaign_type = "multiplayer";