Skip to content

Commit

Permalink
add assert for [load_resource] bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Dec 2, 2018
1 parent 16927f9 commit 646e074
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/saved_game.cpp
Expand Up @@ -373,6 +373,7 @@ void saved_game::expand_mp_events()
mods.clear();

while(starting_point_.has_child("load_resource")) {
assert(starting_point_.child_count("load_resource") > 0);
std::string id = starting_point_.child("load_resource")["id"];
size_t pos = starting_point_.find_total_first_of("load_resource");
starting_point_.remove_child("load_resource", 0);
Expand Down

0 comments on commit 646e074

Please sign in to comment.