Mercurial > hg > early-roguelike
comparison srogue/io.c @ 254:e940e6c00751
Add some braces to a loop in parse_opts().
A for loop had no braces around its body, which was a single if-else
statement. In Advanced Rogue 5, another statement had been added,
accidentally removing the if-else from the loop. This could have
resulted in an out-of-bounds access to the options array.
In the other games, the added braces are only for clarity.
author | John "Elwin" Edwards |
---|---|
date | Fri, 10 Feb 2017 09:02:58 -0500 |
parents | 94a0d9dd5ce1 |
children | 70aa5808c782 |
comparison
equal
deleted
inserted
replaced
252:3d4252fa2ed3 | 254:e940e6c00751 |
---|