From c7940d12f90a5e58b3f36cb4981d46fe6138da7b Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 21 May 2016 17:24:51 +0000 Subject: [PATCH] Fix -Wshadow warnings in load_exit_models --- similar/main/bm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/similar/main/bm.cpp b/similar/main/bm.cpp index a4440ccf3..5b06cd746 100644 --- a/similar/main/bm.cpp +++ b/similar/main/bm.cpp @@ -656,7 +656,7 @@ int load_exit_models() ogl_cache_polymodel_textures(destroyed_exit_modelnum); #endif } - else if (auto exit_hamfile = PHYSFSX_openReadBuffered(D1_PIGFILE)) + else if ((exit_hamfile = PHYSFSX_openReadBuffered(D1_PIGFILE))) { int offset, offset2; int hamsize;