diff options
author | QAston <none@none> | 2009-08-27 17:44:30 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-08-27 17:44:30 +0200 |
commit | 6b703d600bd08fa642a2e121fb53d5749d677076 (patch) | |
tree | fb9841c1ce09e9f83542c84340f97ded510db85a /src/shared/Database/Field.h | |
parent | 562b4fc0a4cc748df4a5732771a8b83b8af093c1 (diff) |
*Add `spell_dbc` table to store dbc entries not present in client
*Remove workaround from Demonic Circle code and use the sql table instead.
--HG--
branch : trunk
Diffstat (limited to 'src/shared/Database/Field.h')
-rw-r--r-- | src/shared/Database/Field.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/shared/Database/Field.h b/src/shared/Database/Field.h index f365a96df64..d1238f838a5 100644 --- a/src/shared/Database/Field.h +++ b/src/shared/Database/Field.h @@ -65,6 +65,17 @@ class Field else return 0; } + uint64 GetInt64() const + { + if(mValue) + { + int64 value; + sscanf(mValue,SI64FMTD,&value); + return value; + } + else + return 0; + } void SetType(enum DataTypes type) { mType = type; } |