diff options
author | 2008-02-23 22:28:46 +0000 | |
---|---|---|
committer | 2008-02-23 22:28:46 +0000 | |
commit | 045be7d2c5e08408453d6c969dc863e75f9cbfbb (patch) | |
tree | 2a7bb40776b0151707d62df71da79af1fce242a7 /sail/display.h | |
parent | 59b92506bcb68b77b0568fd6c0aa6c0dc14ab490 (diff) | |
download | bsdgames-darwin-045be7d2c5e08408453d6c969dc863e75f9cbfbb.tar.gz bsdgames-darwin-045be7d2c5e08408453d6c969dc863e75f9cbfbb.tar.zst bsdgames-darwin-045be7d2c5e08408453d6c969dc863e75f9cbfbb.zip |
Fixes from OpenBSD.
- If a player goes bankrupt buying a property (which shouldn't be
allowed, but I guess it is), don't cause them to resign to themselves.
- Use "NULL", not "0", for pointers.
- Avoid undefined behavior adjusting the current player after resigning.
- Don't leak the memory used to store player names.
The last of these is disabled for the moment because we have the pointers
in question tagged const. Will see to this when I'm finished merging.
Diffstat (limited to 'sail/display.h')
0 files changed, 0 insertions, 0 deletions