Added a extra check for InGame to SAWSIL and SLWIB
Improved the CMemory class a bit