foclassic
foclassic copied to clipboard
Sanitize global variables
Currently only one scenario is known (to me), where changing __Variable leads to crash, but there might be more of them. I'd add checks for invalid values on initialization, problem remains if scripts change it later.
- [ ] __ApRegeneration = 0 (SDK r412)
EXCEPTION_INT_DIVIDE_BY_ZERO
FOnlineServer, public: static void __cdecl FOServer::ProcessCritter(class Critter *) + 201