MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / setId

Method setId

src/Savegame/AlienMission.cpp:569–573  ·  view source on GitHub ↗

* Assigns a unique ID to this mission. * It is an error to assign two IDs to the same mission. * @param id The UD to assign. */

Source from the content-addressed store, hash-verified

567 * @param id The UD to assign.
568 */
569void AlienMission::setId(int id)
570{
571 assert(_uniqueID == 0 && "Reassigning ID!");
572 _uniqueID = id;
573}
574
575/**
576 * @return The unique ID assigned to this mission.

Callers 2

ufoReachedWaypointMethod · 0.45
spawnAlienBaseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected