BugFix: add nil check for gMain
BugFix: add nil check for gMain


Alexandr57/kam_remake,Alexandr57/kam_remake,reyandme/kam_remake,thibmo/kam_remake,Alexandr57/kam_remake,reyandme/kam_remake,Alexandr57/kam_remake,Alexandr57/kam_remake,thibmo/kam_remake,reyandme/kam_remake,thibmo/kam_remake,thibmo/kam_remake,reyandme/kam_remake,thibmo/kam_remake,reyandme/kam_remake,Alexandr57/kam_remake