From 73b481073d1bd4fe4158bd10d2d3aa129eb6db30 Mon Sep 17 00:00:00 2001 From: QAston Date: Sat, 31 Jul 2010 23:39:03 +0200 Subject: *Fix talent Will of the NEcropolis *Backout unintentional change from ra299f0b248. --HG-- branch : trunk --- src/server/shared/DataStores/DBCStore.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/shared') diff --git a/src/server/shared/DataStores/DBCStore.h b/src/server/shared/DataStores/DBCStore.h index a1a8413b6d6..22c77fadb27 100644 --- a/src/server/shared/DataStores/DBCStore.h +++ b/src/server/shared/DataStores/DBCStore.h @@ -85,14 +85,14 @@ class DBCStorage Field *fields = NULL; QueryResult_AutoPtr result = QueryResult_AutoPtr(NULL); // Load data from sql - if (false/*sql*/) + if (sql) { std::string query = "SELECT * FROM " + sql->sqlTableName; if (sql->indexPos >= 0) query +=" ORDER BY " + *sql->indexName + " DESC"; query += ";"; - /* + result = WorldDatabase.Query(query.c_str()); if (result) { @@ -108,7 +108,7 @@ class DBCStorage sLog.outError("Invalid index pos for dbc:'%s'", sql->sqlTableName.c_str()); return false; } - }*/ + } } char * sqlDataTable; fieldCount = dbc.GetCols(); -- cgit v1.2.3