- fix automap cheat to avoid division by 0.

SVN r2308 (trunk)
This commit is contained in:
Christoph Oelckers 2010-05-01 20:34:28 +00:00
parent 1b0756e170
commit 80f5a58e34

View file

@ -185,7 +185,7 @@ CUSTOM_CVAR (Int, am_showalllines, -1, 0) // This is a cheat so don't save it.
{
int flagged = 0;
int total = 0;
if (self > 0)
if (self > 0 && numlines > 0)
{
for(int i=0;i<numlines;i++)
{