[Freeciv-Dev] Re: (PR#14164) gui-win32: audit game.player_ptr users
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14164 >
Egor Vyscrebentsov wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=14164 >
>
> On Wed, 5 Oct 2005 16:10:53 -0700
> James Canete <use_less@xxxxxxxxxxx> wrote:
>
> JC>- if (pdialog->pcity->owner != game.player_ptr) {
> JC>+ if (pdialog->pcity->owner != game.player_ptr || !game.player_ptr) {
>
> Could pcity->owner be NULL? I thought it couldn't...
pcity->owner may never be NULL. However if game.player_ptr is NULL then
you want to draw all cities as if we own them (the user can browse
through all cities). So I think this code is corrrect.
-jason
|
|