Bug: Try game:get_hero():get_map() on game's on_started event to instantly crash the engine
Trying to get the map from the hero on a game's on_started() event instantly crashes the engine:
game_meta:register_event("on_started", function(game)
print("Map from game:", game:get_map())
print("Hero from game:", game:get_hero())
print("Map from hero:", game:get_hero():get_map())
end)
Gives you:
Map from game: nil
Hero from game: userdata: 0x0295ae166628
Fatal: The quest process crashed.