Author: silene
Date: Thu May 21 20:48:06 2009
New Revision: 35803
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35803&view=rev
Log:
Fixed name generation with respect to unspecified WML gender.
Modified:
trunk/src/unit.hpp
Modified: trunk/src/unit.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.hpp?rev=35803&r1=35802&r2=35803&view=diff
==============================================================================
--- trunk/src/unit.hpp (original)
+++ trunk/src/unit.hpp Thu May 21 20:48:06 2009
@@ -320,8 +320,8 @@
void remove_temporary_modifications();
void generate_traits(bool musthaveonly=false, game_state* state = 0);
void generate_traits_description();
- std::string generate_name( rand_rng::simple_rng* rng = 0) const
- { return race_->generate_name(string_gender(cfg_["gender"]),
rng); }
+ std::string generate_name(rand_rng::simple_rng *rng = 0) const
+ { return race_->generate_name(gender_, rng); }
// Only see_all=true use caching
bool invisible(const map_location& loc,
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits