summaryrefslogtreecommitdiff
path: root/src/account-server/storage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/account-server/storage.cpp')
-rw-r--r--src/account-server/storage.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/account-server/storage.cpp b/src/account-server/storage.cpp
index 9d293a37..333f3aaf 100644
--- a/src/account-server/storage.cpp
+++ b/src/account-server/storage.cpp
@@ -1981,12 +1981,13 @@ void Storage::syncDatabase()
continue;
int weight = XML::getProperty(node, "weight", 0);
- std::string type = XML::getProperty(node, "type", "");
- std::string name = XML::getProperty(node, "name", "");
- std::string desc = XML::getProperty(node, "description", "");
- std::string eff = XML::getProperty(node, "effect", "");
- std::string image = XML::getProperty(node, "image", "");
- std::string dye("");
+ std::string type = XML::getProperty(node, "type", std::string());
+ std::string name = XML::getProperty(node, "name", std::string());
+ std::string desc = XML::getProperty(node, "description",
+ std::string());
+ std::string eff = XML::getProperty(node, "effect", std::string());
+ std::string image = XML::getProperty(node, "image", std::string());
+ std::string dye;
// Split image name and dye string
size_t pipe = image.find("|");