Mercurial > hg > openttd
diff src/economy.cpp @ 9297:add307f2e6ea draft
(svn r13165) -Codechange: replace some RebuildXXXList/ResortXXXList+InvalidateWindowXXX with InvalidateWindowXXXData.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 18 May 2008 16:51:44 +0000 (2008-05-18) |
parents | 084086b60da8 |
children | 2b0c6e62535e |
line wrap: on
line diff
--- a/src/economy.cpp +++ b/src/economy.cpp @@ -1781,7 +1781,10 @@ p->is_active = false; DeletePlayerWindows(pi); - RebuildVehicleLists(); //Updates the open windows to add the newly acquired vehicles to the lists + InvalidateWindowClassesData(WC_TRAINS_LIST, 0); + InvalidateWindowClassesData(WC_SHIPS_LIST, 0); + InvalidateWindowClassesData(WC_ROADVEH_LIST, 0); + InvalidateWindowClassesData(WC_AIRCRAFT_LIST, 0); } extern int GetAmountOwnedBy(const Player *p, PlayerID owner);