Fix research cancellation not registering in UI.

If cancelling a research, then the next completed research in the same facility would linger after completion.

Fixes ticket:3046.
master
Cyp 2012-01-10 14:04:59 +01:00
parent c67e49c7ec
commit 03833edf3f
1 changed files with 1 additions and 0 deletions

View File

@ -967,6 +967,7 @@ bool recvResearchStatus(NETQUEUE queue)
if (psBuilding)
{
cancelResearch(psBuilding, ModeImmediate);
popStatusPending(*(RESEARCH_FACILITY *)psBuilding->pFunctionality); // Research cancellation is no longer pending, as it's actually cancelling now.
}
}