Update database.cpp

- Fixed a filter on the sql_updates file we are using to track inserts/updates, filtered `guilds` instead of guilds
This commit is contained in:
Image 2020-03-06 18:30:25 -05:00
parent c6f25737e8
commit 04f291f5db

View file

@ -214,10 +214,10 @@ MYSQL_RES* Query::RunQuery2(string in_query, QUERY_TYPE type){
}
query = in_query;
#ifdef WORLD && _DEBUG
#if defined WORLD && defined _DEBUG
if (type == Q_UPDATE || type == Q_INSERT || type == Q_DELETE || type == Q_REPLACE)
{
char* filteredTables[] = { " characters", " character_", " statistics", " variables", " guilds" };
char* filteredTables[] = { " characters", " character_", " statistics", " variables", "`guilds`" };
bool match = false;
for (int i = 0; i < sizeof(filteredTables) / sizeof(filteredTables[0]); i++)