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

Function SlCalcRefLen

src/saveload/saveload.cpp:660–663  ·  view source on GitHub ↗

Return the size in bytes of a reference (pointer) */

Source from the content-addressed store, hash-verified

658
659/** Return the size in bytes of a reference (pointer) */
660static inline size_t SlCalcRefLen()
661{
662 return IsSavegameVersionBefore(SLV_69) ? 2 : 4;
663}
664
665void SlSetArrayIndex(uint index)
666{

Callers 1

SlCalcObjMemberLengthFunction · 0.85

Calls 1

IsSavegameVersionBeforeFunction · 0.85

Tested by

no test coverage detected