From 4df0a5ee7d2862b9152a3ecbbc1904dad61767ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sat, 18 Mar 2017 22:44:45 +0100 Subject: [PATCH] Reduce scope of variable in Imaging.cpp --- src/openrct2/Imaging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/Imaging.cpp b/src/openrct2/Imaging.cpp index d8302914f1..7bc9220663 100644 --- a/src/openrct2/Imaging.cpp +++ b/src/openrct2/Imaging.cpp @@ -36,7 +36,6 @@ namespace Imaging { png_structp png_ptr; png_infop info_ptr; - unsigned int sig_read = 0; // Setup PNG structures png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, nullptr, nullptr, nullptr); @@ -55,6 +54,7 @@ namespace Imaging // Open PNG file try { + unsigned int sig_read = 0; auto fs = FileStream(path, FILE_MODE_OPEN); // Set error handling