Skip to content

Commit 0926ce3

Browse files
committed
Minor fix.
1 parent 7a31124 commit 0926ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/bunny.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ program main
3939
if (is_mouse_button_down(MOUSE_BUTTON_LEFT)) then
4040
! Create more bunnies.
4141
do i = 1, 100
42-
if (nbunnies > MAX_BUNNIES) exit
42+
if (nbunnies >= MAX_BUNNIES) exit
4343
nbunnies = nbunnies + 1
4444

4545
bunnies(nbunnies)%position = get_mouse_position()

0 commit comments

Comments
 (0)