<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40627 >
There's crash if one builds base type that conflicts with another to the tile where is no previous base. Fix attached. - ML
diff -Nurd -X.diff_ignore freeciv/server/unittools.c freeciv/server/unittools.c --- freeciv/server/unittools.c 2008-11-04 16:19:12.000000000 +0200 +++ freeciv/server/unittools.c 2009-01-05 16:19:31.000000000 +0200 @@ -797,7 +797,8 @@ struct base_type *new_base = base_by_number(punit->activity_base); base_type_iterate(old_base) { - if (!can_bases_coexist(old_base, new_base)) { + if (tile_has_base(ptile, old_base) + && !can_bases_coexist(old_base, new_base)) { if (base_has_flag(old_base, BF_CLAIM_TERRITORY)) { map_clear_border(ptile, ptile->owner); map_claim_ownership(ptile, NULL, NULL);
_______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev