Author: anonymissimus
Date: Wed Oct 19 01:19:33 2011
New Revision: 51540

URL: http://svn.gna.org/viewcvs/wesnoth?rev=51540&view=rev
Log:
fix $this_unit being broken for recall list units (bug #18821)

Remove duplicate storing, which was clearing the already stored
unit from the gamestate variables again. Silene forgot to delete
the line in r45266.

Modified:
    trunk/src/variable.cpp

Modified: trunk/src/variable.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/variable.cpp?rev=51540&r1=51539&r2=51540&view=diff
==============================================================================
--- trunk/src/variable.cpp (original)
+++ trunk/src/variable.cpp Wed Oct 19 01:19:33 2011
@@ -537,7 +537,6 @@
                        tmp_cfg["y"] = "recall";
                        LOG_NG << "auto-storing $" << name() << " for player: " 
<< player_
                                << " at recall index: " << recall_index_ << 
'\n';
-                       store(tmp_cfg);
                } else {
                        ERR_NG << "failed to auto-store $" << name() << " for 
player: " << player_
                                << " at recall index: " << recall_index_ << 
'\n';


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to