Author: silene
Date: Sun Apr 12 22:27:56 2009
New Revision: 34825

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34825&view=rev
Log:
Fixed units being incorrectly known by their translated name.

Modified:
    trunk/src/unit.hpp

Modified: trunk/src/unit.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.hpp?rev=34825&r1=34824&r2=34825&view=diff
==============================================================================
--- trunk/src/unit.hpp (original)
+++ trunk/src/unit.hpp Sun Apr 12 22:27:56 2009
@@ -96,7 +96,7 @@
        const std::string& undead_variation() const {return undead_variation_;}
 
        /** The unit name for display */
-       const std::string& name() const {return (name_);}
+       const t_string &name() const { return name_; }
        void rename(const std::string& name) {if (!unrenamable_) name_= name;}
 
        /** The unit's profile */
@@ -370,7 +370,7 @@
        std::string type_;
        const unit_race* race_;
        std::string id_;
-       std::string name_;
+       t_string name_;
        size_t underlying_id_;
        t_string type_name_;
        std::string undead_variation_;


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

Reply via email to