5114b8f8b6
Saved games dump robot ai_local state for all objects, regardless of whether the object is a robot. Loading a game restored all ai_local values, regardless of whether the object was a robot on restore. This caused memory corruption in objects that were not robots when the `ctype.`_T_ for that object was large enough to overlap `ctype.ai_info.ail`. Fix this by loading the ai_local into a junk buffer when the object is not a robot. It would be better to skip over the bogus ai_local entirely, but the structure of ai_local_read_swap makes that difficult. Use the easy fix for now. |
||
---|---|---|
common | ||
contrib | ||
d1x-rebirth | ||
d2x-rebirth | ||
Documentation | ||
similar | ||
.gitignore | ||
COPYING.txt | ||
GPL-3.txt | ||
INSTALL.markdown | ||
SConstruct |