mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 15:24:30 +01:00
Fix Werror=maybe-uninitialized issue of struct, found by gcc 9.1.1. (#9578)
This commit is contained in:
committed by
Michael Steenbeek
parent
930eb33e1c
commit
7b317e312c
@@ -263,7 +263,7 @@ std::vector<rct_large_scenery_text_glyph> LargeSceneryObject::ReadJsonGlyphs(con
|
||||
const json_t* jGlyph;
|
||||
json_array_foreach(jGlpyhs, index, jGlyph)
|
||||
{
|
||||
rct_large_scenery_text_glyph glyph;
|
||||
rct_large_scenery_text_glyph glyph = {};
|
||||
glyph.image_offset = json_integer_value(json_object_get(jGlyph, "image"));
|
||||
glyph.width = json_integer_value(json_object_get(jGlyph, "width"));
|
||||
glyph.height = json_integer_value(json_object_get(jGlyph, "height"));
|
||||
|
||||
Reference in New Issue
Block a user