[SP] More robust fix for R_FogFactor crash.