From 6b703d600bd08fa642a2e121fb53d5749d677076 Mon Sep 17 00:00:00 2001 From: QAston Date: Thu, 27 Aug 2009 17:44:30 +0200 Subject: *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 --- src/shared/Database/Field.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/shared/Database/Field.h') 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; } -- cgit v1.2.3