From 3bf4e26b1319295532bb4396cbd6406d85cbcae0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 29 Mar 2012 03:51:37 +0300 Subject: Replace vectors with strings to short names. --- src/net/manaserv/attributes.cpp | 4 ++-- src/net/manaserv/attributes.h | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src/net/manaserv') diff --git a/src/net/manaserv/attributes.cpp b/src/net/manaserv/attributes.cpp index 662032e29..9d1e159ff 100644 --- a/src/net/manaserv/attributes.cpp +++ b/src/net/manaserv/attributes.cpp @@ -66,7 +66,7 @@ namespace Attributes static TagMap tags; /** List of modifiable attribute names used at character's creation. */ - static std::vector attributeLabels; + static StringVect attributeLabels; /** Characters creation points. */ static unsigned int creationPoints = 0; @@ -82,7 +82,7 @@ namespace Attributes unsigned int getAttributeMaximum() { return attributeMaximum; } - std::vector& getLabels() + StringVect& getLabels() { return attributeLabels; } /** diff --git a/src/net/manaserv/attributes.h b/src/net/manaserv/attributes.h index ba5931b8c..5e0aab38a 100644 --- a/src/net/manaserv/attributes.h +++ b/src/net/manaserv/attributes.h @@ -22,8 +22,7 @@ #ifndef NET_MANASERV_ATTRIBUTES_H #define NET_MANASERV_ATTRIBUTES_H -#include -#include +#include "utils/stringvector.h" namespace ManaServ { @@ -41,7 +40,7 @@ namespace Attributes /** * Returns the list of base attribute labels. */ - std::vector& getLabels(); + StringVect& getLabels(); /** * Give back the corresponding playerinfo Id from the attribute id -- cgit v1.2.3-70-g09d2