MCPcopy Create free account
hub / github.com/DFHack/dfhack / unassignTrainer

Method unassignTrainer

library/modules/Units.cpp:949–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

947}
948
949bool Units::unassignTrainer(df::unit *unit) {
950 CHECK_NULL_POINTER(unit);
951 return erase_from_vector(plotinfo->training.training_assignments,
952 &df::training_assignment::animal_id, unit->id);
953}
954
955void Units::makeown(df::unit *unit) {
956 CHECK_NULL_POINTER(unit);

Callers

nothing calls this directly

Calls 1

erase_from_vectorFunction · 0.85

Tested by

no test coverage detected