Changeset - r2733:7cb15f8133a8
[Not reviewed]
master
0 1 0
truelight - 19 years ago 2005-12-09 19:12:11
truelight@openttd.org
(svn r3278) -Fix: lets update the tail-pointer if we add a new item, else the linkedlist never grows ;)
1 file changed with 3 insertions and 1 deletions:
ai/ai.c
3
1
0 comments (0 inline, 0 general)
ai/ai.c
Show inline comments
 
@@ -153,8 +153,10 @@ int32 AI_DoCommandChecked(uint tile, uin
 
	/* Add it to the back of the list */
 
	if (command_uid_tail[_current_player] == NULL)
 
		command_uid_tail[_current_player] = new;
 
	else
 
	else {
 
		command_uid_tail[_current_player]->next = new;
 
		command_uid_tail[_current_player] = new;
 
	}
 

	
 
	if (command_uid[_current_player] == NULL)
 
		command_uid[_current_player] = new;
0 comments (0 inline, 0 general)