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

Method removeProduction

src/Savegame/Base.cpp:1002–1010  ·  view source on GitHub ↗

* Remove a Production from the Base * @param p A pointer to a Production */

Source from the content-addressed store, hash-verified

1000 * @param p A pointer to a Production
1001*/
1002void Base::removeProduction (Production * p)
1003{
1004 _engineers += p->getAssignedEngineers();
1005 std::vector<Production *>::iterator iter = std::find (_productions.begin (), _productions.end (), p);
1006 if (iter != _productions.end ())
1007 {
1008 _productions.erase(iter);
1009 }
1010}
1011
1012/**
1013 * Get the list of Base Production's

Callers 2

btnStopClickMethod · 0.80
time1HourMethod · 0.80

Calls 1

getAssignedEngineersMethod · 0.80

Tested by

no test coverage detected