Skip to content
Permalink
Browse files

[move_units_fake]: fixed a segfault

  • Loading branch information
Elvish-Hunter committed May 9, 2015
1 parent cea5239 commit 31436e85bbe2aad85082977c8cb40e32915f835a
Showing with 5 additions and 1 deletion.
  1. +1 −0 changelog
  2. +3 −0 players_changelog
  3. +1 −1 src/game_events/action_wml.cpp
@@ -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:
@@ -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:
@@ -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());

0 comments on commit 31436e8

Please sign in to comment.