MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / unloadData

Method unloadData

src/Ruleset/MapDataSet.cpp:249–261  ·  view source on GitHub ↗

* Unloads the terrain data. */

Source from the content-addressed store, hash-verified

247 * Unloads the terrain data.
248 */
249void MapDataSet::unloadData()
250{
251 if (_loaded)
252 {
253 for (std::vector<MapData*>::iterator i = _objects.begin(); i != _objects.end();)
254 {
255 delete *i;
256 i = _objects.erase(i);
257 }
258 delete _surfaceSet;
259 _loaded = false;
260 }
261}
262
263/**
264 * Loads the LOFTEMPS.DAT into the ruleset voxeldata.

Callers 1

~SavedBattleGameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected