Author: tschmitz
Date: Sat Jul 9 09:53:40 2011
New Revision: 50246
URL: http://svn.gna.org/viewcvs/wesnoth?rev=50246&view=rev
Log:
Changed unit constructor to assign a fake underlying_id when real_unit==false.
Modified:
trunk/src/unit.cpp
Modified: trunk/src/unit.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.cpp?rev=50246&r1=50245&r2=50246&view=diff
==============================================================================
--- trunk/src/unit.cpp (original)
+++ trunk/src/unit.cpp Sat Jul 9 09:53:40 2011
@@ -540,7 +540,7 @@
race_(NULL),
id_(),
name_(),
- underlying_id_(0),
+ underlying_id_(real_unit? 0:
n_unit::id_manager::instance().next_fake_id()),
type_name_(),
undead_variation_(),
variation_(),
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits