summaryrefslogtreecommitdiff
path: root/src/account-server/dalstorage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/account-server/dalstorage.cpp')
-rw-r--r--src/account-server/dalstorage.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/account-server/dalstorage.cpp b/src/account-server/dalstorage.cpp
index 4898ed1c..721bb55f 100644
--- a/src/account-server/dalstorage.cpp
+++ b/src/account-server/dalstorage.cpp
@@ -554,6 +554,8 @@ DALStorage::updateCharacter(CharacterPtr character)
<< "', "
<< "agi = '" << character->getBaseAttribute(BASE_ATTR_AGILITY)
<< "', "
+ << "dex = '" << character->getBaseAttribute(BASE_ATTR_DEXTERITY)
+ << "', "
<< "vit = '" << character->getBaseAttribute(BASE_ATTR_VITALITY)
<< "', "
#if defined(MYSQL_SUPPORT) || defined(POSTGRESQL_SUPPORT)
@@ -563,8 +565,7 @@ DALStorage::updateCharacter(CharacterPtr character)
#endif
<< character->getBaseAttribute(BASE_ATTR_INTELLIGENCE)
<< "', "
- << "dex = '" << character->getBaseAttribute(BASE_ATTR_DEXTERITY)
- << "', "
+
<< "will = '" << character->getBaseAttribute(BASE_ATTR_WILLPOWER)
<< "', "
<< "charisma = '" << character->getBaseAttribute(BASE_ATTR_CHARISMA)
@@ -878,9 +879,9 @@ void DALStorage::flush(AccountPtr const &account)
<< (*it)->getMapId() << ", "
<< (*it)->getBaseAttribute(BASE_ATTR_STRENGTH) << ", "
<< (*it)->getBaseAttribute(BASE_ATTR_AGILITY) << ", "
+ << (*it)->getBaseAttribute(BASE_ATTR_DEXTERITY) << ", "
<< (*it)->getBaseAttribute(BASE_ATTR_VITALITY) << ", "
<< (*it)->getBaseAttribute(BASE_ATTR_INTELLIGENCE) << ", "
- << (*it)->getBaseAttribute(BASE_ATTR_DEXTERITY) << ", "
<< (*it)->getBaseAttribute(BASE_ATTR_WILLPOWER) << ", "
<< (*it)->getBaseAttribute(BASE_ATTR_CHARISMA) << ");";
@@ -900,6 +901,7 @@ void DALStorage::flush(AccountPtr const &account)
<< " map_id = " << (*it)->getMapId() << ", "
<< " str = " << (*it)->getBaseAttribute(BASE_ATTR_STRENGTH) << ", "
<< " agi = " << (*it)->getBaseAttribute(BASE_ATTR_AGILITY) << ", "
+ << " dex = " << (*it)->getBaseAttribute(BASE_ATTR_DEXTERITY) << ", "
<< " vit = " << (*it)->getBaseAttribute(BASE_ATTR_VITALITY) << ", "
#if defined(MYSQL_SUPPORT) || defined(POSTGRESQL_SUPPORT)
<< " `int` = "