Author: cazfi
Date: Mon Mar  9 07:09:49 2015
New Revision: 28471

URL: http://svn.gna.org/viewcvs/freeciv?rev=28471&view=rev
Log:
Use copies of dummy tech icons instead of the originals for sdl2-client science 
dialog,
fixing a crash when it frees them like copies of regular techs.

See bug #23356

Modified:
    branches/S2_6/client/gui-sdl2/gui_tilespec.c

Modified: branches/S2_6/client/gui-sdl2/gui_tilespec.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-sdl2/gui_tilespec.c?rev=28471&r1=28470&r2=28471&view=diff
==============================================================================
--- branches/S2_6/client/gui-sdl2/gui_tilespec.c        (original)
+++ branches/S2_6/client/gui-sdl2/gui_tilespec.c        Mon Mar  9 07:09:49 2015
@@ -429,14 +429,14 @@
     case A_UNSET:
     case A_UNKNOWN:
     case A_LAST:
-      return pNone_Tech_Icon;
+      return adj_surf(pNone_Tech_Icon);
     case A_FUTURE:
-      return pFuture_Tech_Icon;
+      return adj_surf(pFuture_Tech_Icon);
     default:
       if (get_tech_sprite(tileset, tech)) {
         return adj_surf(GET_SURF(get_tech_sprite(tileset, tech)));
       } else {
-        return pNeutral_Tech_Icon;
+        return adj_surf(pNeutral_Tech_Icon);
       }
   }
 


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

Reply via email to