From 122d3365038f1b83206a14fadf6d90f2e326d6b5 Mon Sep 17 00:00:00 2001 From: XProger Date: Sat, 23 Feb 2019 08:49:18 +0300 Subject: [PATCH] fix compilation (Web) --- src/level.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/level.h b/src/level.h index 6b54d6c..135a9d7 100644 --- a/src/level.h +++ b/src/level.h @@ -1390,8 +1390,11 @@ struct Level : IGame { //dumpGlyphs(); UI::patchGlyphs(level); - uint32 glyphsW, glyphsH; - glyphsCyr = Texture::LoadPNG(Stream(NULL, GLYPH_CYR, size_GLYPH_CYR), glyphsW, glyphsH); + { + uint32 glyphsW, glyphsH; + Stream stream(NULL, GLYPH_CYR, size_GLYPH_CYR); + glyphsCyr = Texture::LoadPNG(stream, glyphsW, glyphsH); + } // repack texture tiles Atlas *tiles = new Atlas(level.objectTexturesCount + level.spriteTexturesCount + UI::BAR_MAX, this, fillCallback);