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

GitHub noreply at github.com
Wed Sep 9 08:13:50 UTC 2015


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

  Changed paths:
    M src/game_state.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