Author: cazfi
Date: Mon Apr 18 05:59:32 2016
New Revision: 32431

URL: http://svn.gna.org/viewcvs/freeciv?rev=32431&view=rev
Log:
Initialize player multipliers

See bug #24560

Modified:
    branches/S2_6/common/packets.def
    branches/S2_6/common/player.c

Modified: branches/S2_6/common/packets.def
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/packets.def?rev=32431&r1=32430&r2=32431&view=diff
==============================================================================
--- branches/S2_6/common/packets.def    (original)
+++ branches/S2_6/common/packets.def    Mon Apr 18 05:59:32 2016
@@ -827,7 +827,7 @@
   UINT8 color_blue;
 
   CITYSPE wonders[B_LAST]; diff
-  
+
   SINT32 multiplier[MAX_NUM_MULTIPLIERS];
   SINT32 multiplier_target[MAX_NUM_MULTIPLIERS];
 end

Modified: branches/S2_6/common/player.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/player.c?rev=32431&r1=32430&r2=32431&view=diff
==============================================================================
--- branches/S2_6/common/player.c       (original)
+++ branches/S2_6/common/player.c       Mon Apr 18 05:59:32 2016
@@ -596,6 +596,9 @@
   pplayer->tile_known.bits = 0;
 
   pplayer->rgb = NULL;
+
+  memset(pplayer->multipliers, 0, sizeof(pplayer->multipliers));
+  memset(pplayer->multipliers_target, 0, sizeof(pplayer->multipliers_target));
 
   /* pplayer->server is initialised in
       ./server/plrhand.c:server_player_init()


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to