pioneerspacesim/pioneer — pull request #1425 by johnbartholomew (2012-08-09 02:49:17+00:00)
Title: Fix unpickle's interpretation of unsigned 32-bit values

Fixes #1412. Problem and fix discussed in #1424.

This changes `LuaSerializer::unpickle` to use `strtoul` to read values written by `printf(...%u...)`. An alternate fix (implemented in #1424) is to change `pickle` to write out values with `%d` instead.

In either case, saves that loaded correctly in the past should load correctly now. Changing unpickle means that saves written in the past that caused a crash on load may now load correctly.