MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / PostDestructor

Method PostDestructor

src/industry_cmd.cpp:216–220  ·  view source on GitHub ↗

* Invalidating some stuff after removing item from the pool. * @param index index of deleted item */

Source from the content-addressed store, hash-verified

214 * @param index index of deleted item
215 */
216void Industry::PostDestructor(size_t)
217{
218 InvalidateWindowData(WC_INDUSTRY_DIRECTORY, 0, IDIWD_FORCE_REBUILD);
219 SetWindowDirty(WC_BUILD_INDUSTRY, 0);
220}
221
222
223/**

Callers

nothing calls this directly

Calls 2

SetWindowDirtyFunction · 0.85
InvalidateWindowDataFunction · 0.70

Tested by

no test coverage detected