* 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. */
| 1198 | * @return The linked unit, or NULL if there was none. |
| 1199 | */ |
| 1200 | Unit *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. |
no test coverage detected