Mercurial > hg > early-roguelike
view rogue5/rogue.desktop @ 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 | f502bf60e6e4 |
children |
line wrap: on
line source
[Desktop Entry] Encoding=UTF-8 Name=Rogue GenericName=Rogue Comment=The original curses-based adventure game Exec=rogue Icon=rogue.png Terminal=true Type=Application Categories=Game;RolePlaying; Version=1.0