Skip to content

Commit

Permalink
allow [lua] tags in modifications
Browse files Browse the repository at this point in the history
which have the same effect as [lua] tags inside [scenario]
  • Loading branch information
gfgtdf committed Jul 14, 2014
1 parent 0aac94f commit 986d782
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/saved_game.cpp
Expand Up @@ -267,6 +267,10 @@ void saved_game::expand_mp_events()
{
this->starting_pos_.add_child("event", modevent);
}
BOOST_FOREACH(const config& modlua, cfg.child_range("lua"))
{
this->starting_pos_.add_child("lua", modlua);
}
}
else
{
Expand Down

0 comments on commit 986d782

Please sign in to comment.