When upgrading a structure module, close all open stats windows.

This fixes a long standing widget assert, and hopefully fixes 
bugs #9336: segfault, widget.c line 867 r1510 and bug #11446: 
multiplayer crash (assert) on wheel level.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4932 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2008-05-04 20:54:14 +00:00
parent a63115ec88
commit f7aba94675
1 changed files with 1 additions and 0 deletions

View File

@ -2025,6 +2025,7 @@ STRUCTURE* buildStructure(STRUCTURE_STATS* pStructureType, UDWORD x, UDWORD y, U
psBuilding->status = SS_BEING_BUILT;
if (psBuilding->player == selectedPlayer)
{
intResetScreen(false);
intRefreshScreen();
}
//inform power system that won't be needing power until built