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-861f7616d084master
parent
a63115ec88
commit
f7aba94675
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue