MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Structure_GetLinkedUnit

Function Structure_GetLinkedUnit

src/structure.c:1200–1204  ·  view source on GitHub ↗

* Get the unit linked to this structure, or NULL if there is no. * @param s The structure to get the linked unit from. * @return The linked unit, or NULL if there was none. */

Source from the content-addressed store, hash-verified

1198 * @return The linked unit, or NULL if there was none.
1199 */
1200Unit *Structure_GetLinkedUnit(Structure *s)
1201{
1202 if (s->o.linkedID == 0xFF) return NULL;
1203 return Unit_Get_ByIndex(s->o.linkedID);
1204}
1205
1206/**
1207 * Untarget the given Structure.

Callers 2

Calls 1

Unit_Get_ByIndexFunction · 0.85

Tested by

no test coverage detected