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-861f7616d084
master
Buginator 2009-05-06 02:36:05 +00:00 committed by Git SVN Gateway
parent b9aea91c74
commit d16573b326
1 changed files with 1 additions and 1 deletions

View File

@ -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]))