Mercurial > hg > early-roguelike
view rogue5/rogue.desktop @ 166:9b5f1e6aa35a
arogue7, xrogue: fix uninitialized variables when restoring.
The save and restore code assumed sizeof(long) == 4, which is not the
case on x64. Reading only 4 bytes from the savefile left the others
uninitialized, which led to problems like billions of experience points
or gold pieces.
author | John "Elwin" Edwards |
---|---|
date | Fri, 26 Jun 2015 11:42:02 -0400 |
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