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

Function ClearAllIndustryCachedNames

src/industry_cmd.cpp:2609–2614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2607}
2608
2609void ClearAllIndustryCachedNames()
2610{
2611 for (Industry *ind : Industry::Iterate()) {
2612 ind->cached_name.clear();
2613 }
2614}
2615
2616/**
2617 * Set the #probability and #min_number fields for the industry type \a it for a running game.

Callers 2

CmdRenameTownFunction · 0.85
ClearAllCachedNamesFunction · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected