mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- fix automap cheat to avoid division by 0.
SVN r2308 (trunk)
This commit is contained in:
parent
1b0756e170
commit
80f5a58e34
1 changed files with 1 additions and 1 deletions
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue