[Freeciv-Dev] Re: (PR#13383) Memory error in hunter code
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13383 >
Jason Short wrote:
>
> Can you reproduce this?
Assert from attached patch fails in year -0275.
- ML
diff -Nurd -X.diff_ignore freeciv/ai/aihunt.c freeciv/ai/aihunt.c
--- freeciv/ai/aihunt.c 2005-06-30 19:00:25.218750000 +0300
+++ freeciv/ai/aihunt.c 2005-06-30 20:12:59.671875000 +0300
@@ -491,6 +491,8 @@
return 0;
}
+ assert(target == find_unit_by_id(sanity_target));
+
/* Check if we can nuke it now */
ai_hunter_try_launch(pplayer, punit, target);
if (target != find_unit_by_id(sanity_target)) {
set savename hardAI
set timeout -1
create Cazfi
set aifill 10
set saveturns 1
set endyear 2000
set startunits c
set generator 5
set gameseed 92437234
set mapseed 83266342
# set compresstype 1
# set compress 4
hard
start
|
|