Complete.Org: Mailing Lists: Archives: freeciv-dev: September 1999:
[Freeciv-Dev] unit_to_use_to_pillage
Home

[Freeciv-Dev] unit_to_use_to_pillage

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] unit_to_use_to_pillage
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Sat, 4 Sep 1999 10:46:26 +1000 (EST)

The recent patch to allow units to specify what to pillage
has a global var:

+struct unit *unit_to_use_to_pillage;

To be safe, shouldn't this be a unit id, in case the unit
gets killed between popping up the pillage dialog, and the 
user making a selection?  

(In which case the pointer would be wild, whereas looking 
up the unit id would tell you the unit doesn't exist any 
more.)

-- David

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] unit_to_use_to_pillage, David Pfitzner <=