*Fix talent Will of the NEcropolis

*Backout unintentional change from ra299f0b248.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-07-31 23:39:03 +02:00
parent e0af5f9220
commit 73b481073d
3 changed files with 23 additions and 4 deletions
+3 -3
View File
@@ -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();