Skip to content

Commit

Permalink
[move_units_fake]: fixed a segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
Elvish-Hunter committed May 9, 2015
1 parent cea5239 commit 31436e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog
Expand Up @@ -27,6 +27,7 @@ Version 1.13.0+dev:
displaying stdout+stderr (Windows-only).
* Updated mainline campaigns and multiplayer scenarios to use [filter] status=
instead of [filter] [filter_wml] [status]
* Fixed a segfault in [move_units_fake]

Version 1.13.0:
* Security fixes:
Expand Down
3 changes: 3 additions & 0 deletions players_changelog
Expand Up @@ -18,6 +18,9 @@ Version 1.13.0+dev:
* Units:
* Fixed the Shuja not having the default AMLA.

* Miscellaneous and bug fixes:
* Fixed a segfault in [move_units_fake]


Version 1.13.0:
* Security fixes:
Expand Down
2 changes: 1 addition & 1 deletion src/game_events/action_wml.cpp
Expand Up @@ -768,7 +768,7 @@ WML_HANDLER_FUNCTION(move_units_fake, /*event_info*/, cfg)
const std::vector<std::string> yvals = utils::split(config["y"]);
int skip_steps = config["skip_steps"];
fake_unit_ptr u = create_fake_unit(config);
units[paths.size()] = u;
units.push_back(u);
paths.push_back(fake_unit_path(*u, xvals, yvals));
if(skip_steps > 0)
paths.back().insert(paths.back().begin(), skip_steps, paths.back().front());
Expand Down

0 comments on commit 31436e8

Please sign in to comment.