Mercurial > hg > early-roguelike
comparison xrogue/daemon.c @ 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 | cadff8f047a1 |
children | f54901b9c39b |
comparison
equal
deleted
inserted
replaced
165:2d94c32a709e | 166:9b5f1e6aa35a |
---|