Author: cazfi
Date: Mon Apr 18 05:59:24 2016
New Revision: 32430

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

See bug #24560

Modified:
    trunk/common/packets.def
    trunk/common/player.c

Modified: trunk/common/packets.def
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/packets.def?rev=32430&r1=32429&r2=32430&view=diff
==============================================================================
--- trunk/common/packets.def    (original)
+++ trunk/common/packets.def    Mon Apr 18 05:59:24 2016
@@ -857,7 +857,7 @@
   BV_PLR_FLAGS flags;
 
   CITYSPE wonders[B_LAST]; diff
-  
+
   SINT32 multiplier[MAX_NUM_MULTIPLIERS];
   SINT32 multiplier_target[MAX_NUM_MULTIPLIERS];
 end

Modified: trunk/common/player.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/player.c?rev=32430&r1=32429&r2=32430&view=diff
==============================================================================
--- trunk/common/player.c       (original)
+++ trunk/common/player.c       Mon Apr 18 05:59:24 2016
@@ -599,6 +599,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