Commit 8e8270ba authored by Romain Bignon's avatar Romain Bignon

oops, correctly overload the CreateCountry method

parent 38e4ede3
......@@ -264,7 +264,7 @@ class ECountry : public ECBCountry
{
/* Constructeur/Destructeur */
public:
ECountry(ECBMap* map, const Country_ID ident) : ECBCountry(map, ident) {}
ECountry(ECBMap* map, const Country_ID ident, const std::string& name) : ECBCountry(map, ident, name) {}
/* Methodes */
public:
......@@ -314,7 +314,7 @@ public:
protected:
EventVector map_events;
uint i;
virtual ECBCountry* CreateCountry(ECBMap* m, const Country_ID ident) { return new ECountry(m, ident); }
virtual ECBCountry* CreateCountry(ECBMap* m, const Country_ID ident, const std::string& name = "") { return new ECountry(m, ident, name); }
};
typedef std::vector<ECMap*> MapVector;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment