Browse Source

Update database.cpp

- Fixed a filter on the sql_updates file we are using to track inserts/updates, filtered `guilds` instead of guilds
Image 4 years ago
parent
commit
04f291f5db
1 changed files with 2 additions and 2 deletions
  1. 2 2
      EQ2/source/common/database.cpp

+ 2 - 2
EQ2/source/common/database.cpp

@@ -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++)