Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] [Patch][RFC] Accessing unsafe data
Home

[Freeciv-Dev] [Patch][RFC] Accessing unsafe data

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] [Patch][RFC] Accessing unsafe data
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 11 Oct 2001 21:13:31 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

All from common/city: generic_city_refresh calls
set_food_trade_shields calls city_get_food_tile calls city_celebrating
calls city_happy which accesses pcity->ppl_happy[4] which is undefined
IMHO.

Correct? Wrong? This may lead to different initial production data
depending on the happiness of the last calculation of this city. This
last calculation does have to be done at the last turn (which would
set was_happy).

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  One nuclear bomb can ruin your whole day.

Attachment: city_happy_fix1.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]