Let's not underflow a unsigned variable.
Broken in r6969 git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7334 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
b9aea91c74
commit
d16573b326
|
@ -738,7 +738,7 @@ void giftArtifact(UDWORD owner, UDWORD x, UDWORD y)
|
|||
{
|
||||
pO = asPlayerResList[owner];
|
||||
|
||||
for (topic = numResearch - 1; topic >= 0; topic--)
|
||||
for (topic = numResearch - 1; topic > 0; topic--)
|
||||
{
|
||||
if (IsResearchCompleted(&pO[topic])
|
||||
&& !IsResearchPossible(&pR[topic]))
|
||||
|
|
Loading…
Reference in New Issue