MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / allocateMapElements

Function allocateMapElements

src/OpenLoco/src/Map/TileManager.cpp:95–106  ·  view source on GitHub ↗

0x004BF476

Source from the content-addressed store, hash-verified

93
94 // 0x004BF476
95 void allocateMapElements()
96 {
97 try
98 {
99 _elements.resize(kMaxElements);
100 }
101 catch (std::bad_alloc&)
102 {
103 exitWithError(StringIds::game_init_failure, StringIds::unable_to_allocate_enough_memory);
104 return;
105 }
106 }
107
108 // 0x00461179
109 void initialise()

Callers 1

initialiseFunction · 0.85

Calls 2

exitWithErrorFunction · 0.85
resizeMethod · 0.45

Tested by

no test coverage detected