MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getSlice

Method getSlice

framework/apocresources/loftemps.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86sp<VoxelSlice> LOFTemps::getSlice(unsigned int idx)
87{
88 if (idx >= this->slices.size())
89 {
90 LogError("Requested slice %d - only %zu in file", idx, this->slices.size());
91 return nullptr;
92 }
93 return this->slices[idx];
94}
95
96}; // namespace OpenApoc

Callers 1

loadVoxelSliceMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected