[Commits] [wesnoth/wesnoth] dd5321: Avoid side placement OOS by using std::stable_sort

GitHub noreply at github.com
Wed Sep 9 08:15:00 UTC 2015


  Branch: refs/heads/1.12
  Home:   https://github.com/wesnoth/wesnoth
  Commit: dd532114f177d76f5423ff9947cdb9c3bbaee3eb
      https://github.com/wesnoth/wesnoth/commit/dd532114f177d76f5423ff9947cdb9c3bbaee3eb
  Author: Lari Nieminen <lari.nieminen at iki.fi>
  Date:   2015-09-09 (Wed, 09 Sep 2015)

  Changed paths:
    M src/play_controller.cpp

  Log Message:
  -----------
  Avoid side placement OOS by using std::stable_sort

Use of std::sort sometimes led to clients sorting placings with equal scores differently, leading to OOS when clients placed sides in different castles.





More information about the Commits mailing list