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

Method removeResearch

src/Savegame/Base.cpp:988–996  ·  view source on GitHub ↗

* Remove a ResearchProject from base * @param project the project to remove */

Source from the content-addressed store, hash-verified

986 * @param project the project to remove
987*/
988void Base::removeResearch(ResearchProject * project)
989{
990 _scientists += project->getAssigned();
991 std::vector<ResearchProject *>::iterator iter = std::find (_research.begin (), _research.end (), project);
992 if(iter != _research.end ())
993 {
994 _research.erase(iter);
995 }
996}
997
998/**
999 * Remove a Production from the Base

Callers 2

btnCancelClickMethod · 0.80
time1DayMethod · 0.80

Calls 1

getAssignedMethod · 0.80

Tested by

no test coverage detected