fix(gx): file pointer should be initialized to nullptr because its value is used as a condition

This commit is contained in:
superp00t 2024-02-17 21:29:01 -05:00
parent 18d7f60df0
commit e20f185f75

View File

@ -463,7 +463,7 @@ void CGxDevice::IShaderLoad(CGxShader* shaders[], EGxShTarget target, const char
} }
char path[260]; char path[260];
SFile* file; SFile* file = nullptr;
while (true) { while (true) {
sprintf(path, "%s\\%s\\%s.bls", a4, g_gxShaderProfileNames[target][profile], a5); sprintf(path, "%s\\%s\\%s.bls", a4, g_gxShaderProfileNames[target][profile], a5);