Replaced pointer operations with RCT2_GLOBAL and fixed potential out-of-bounds array problem

Too bad Visual Studio didn't warn about warning_throttle[6] being too small.