Fix deleting an in-use template vehicle, only updating the first group.

This commit is contained in:
Jonathan G Rennison
2016-06-10 00:05:24 +01:00
parent 31136bac50
commit b7aac40da8
4 changed files with 9 additions and 16 deletions

View File

@@ -149,17 +149,6 @@ TemplateReplacement* GetTemplateReplacementByGroupID(GroupID gid)
return NULL;
}
TemplateReplacement* GetTemplateReplacementByTemplateID(TemplateID tid)
{
TemplateReplacement *tr;
FOR_ALL_TEMPLATE_REPLACEMENTS(tr) {
if (tr->Template() == tid) {
return tr;
}
}
return NULL;
}
bool IssueTemplateReplacement(GroupID gid, TemplateID tid)
{
TemplateReplacement *tr = GetTemplateReplacementByGroupID(gid);