FS#1177 - Assert when switching to AI player with finance window open

Attached to Project: OpenTTD
Opened by Mall Monkey (mallmonkey) - Friday, 31 August 2007, 20:27 GMT
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System Mac OS X
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


When I switch to an AI player of which I have the finance window open, I get the following assert:
/Users/neil/dev/openttd/trunk/src/window.h:607: failed assertion `widget_index < w->widget_count'

This only happens when I have the AI players finance window already open; switching first and then opening the finance window is no problem. Having my own finance window open isn't a problem either. When I've switched to the AI and open my own finance window, and then change back, the game asserts too.

Happens both on PPC (tested with r11023) and Intel Mac (tested with r11024).
This task depends upon

Closed by  Remko Bijker (Rubidium)
Friday, 31 August 2007, 23:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r11028.