Small fix to prevent a division by zero.

This commit is contained in:
gfk committed 2002-11-30 02:51:17 +00:00
1 parent 026e647e88
commit 73d922a9a5
1 file changed
+1 -1
+1 -1
View File
@@ -208,7 +208,7 @@ render_frame (LinkedList * list,
screenlist_action = 0;
}
fy %= fhgt;
if (fhgt == 0) { fy = 0; } else { fy %= fhgt; }
if (fy > fhgt - vis_height)
fy = fhgt - vis_height;