TheSuperHackers/GeneralsGameCode

Loop variable typo in matchbot

Chikinsupu opened this issue · 2 comments

A potential typo was found in generals.cpp in the matchbot tool. The loop variable should be i5 instead of i3.
The impact was and is probably extremely minor.

Credit to @ThePrimeagen

{
i5 = i4;
for (++i5; i5 != userMap.end(); ++i3)
{
u5 = i5->second;
if (u5->status != STATUS_WORKING)

This code is not for the main game, just for matchbot tool

Yep, that's what it says in the description