MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / FreeObjectString

Method FreeObjectString

src/openrct2/localisation/LocalisationService.cpp:162–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160 }
161
162 void LocalisationService::FreeObjectString(StringId stringId)
163 {
164 if (stringId != kStringIdEmpty)
165 {
166 size_t index = stringId - kBaseObjectStringID;
167 if (index < _objectStrings.size())
168 {
169 _objectStrings[index] = {};
170 }
171 _availableObjectStringIds.push(stringId);
172 }
173 }
174
175 const std::vector<int32_t>& LocalisationService::GetLanguageOrder() const
176 {

Callers 1

LanguageFreeObjectStringFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected