mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2026-01-17 08:16:09 +01:00
Fix for Issue #6 where terrain is uninitialized
This commit is contained in:
@@ -483,6 +483,7 @@ def _parse_tiles(
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
terrain = None
|
||||||
try:
|
try:
|
||||||
tile_terrain_attrib = tile_element.attrib["terrain"]
|
tile_terrain_attrib = tile_element.attrib["terrain"]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|||||||
Reference in New Issue
Block a user