mirror of https://github.com/OpenRCT2/OpenRCT2.git
Reduce scope of variable in Imaging.cpp
This commit is contained in:
parent
ddc2a708d4
commit
4df0a5ee7d
|
@ -36,7 +36,6 @@ namespace Imaging
|
||||||
{
|
{
|
||||||
png_structp png_ptr;
|
png_structp png_ptr;
|
||||||
png_infop info_ptr;
|
png_infop info_ptr;
|
||||||
unsigned int sig_read = 0;
|
|
||||||
|
|
||||||
// Setup PNG structures
|
// Setup PNG structures
|
||||||
png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, nullptr, nullptr, nullptr);
|
png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, nullptr, nullptr, nullptr);
|
||||||
|
@ -55,6 +54,7 @@ namespace Imaging
|
||||||
// Open PNG file
|
// Open PNG file
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
unsigned int sig_read = 0;
|
||||||
auto fs = FileStream(path, FILE_MODE_OPEN);
|
auto fs = FileStream(path, FILE_MODE_OPEN);
|
||||||
|
|
||||||
// Set error handling
|
// Set error handling
|
||||||
|
|
Loading…
Reference in New Issue