Explorar o código

Fixed debug output for missing char server tables

Lemongrass3110 %!s(int64=8) %!d(string=hai) anos
pai
achega
780ebd16db
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/char/char.c

+ 3 - 1
src/char/char.c

@@ -2217,8 +2217,10 @@ bool char_checkdb(void){
 	};
 	ShowInfo("Start checking DB integrity\n");
 	for (i=0; i<ARRAYLENGTH(sqltable); i++){ //check if they all exist and we can acces them in sql-server
-		if( SQL_ERROR == Sql_Query(sql_handle, "SELECT 1 FROM `%s` LIMIT 1;", sqltable[i]) )
+		if( SQL_ERROR == Sql_Query(sql_handle, "SELECT 1 FROM `%s` LIMIT 1;", sqltable[i]) ){
+			Sql_ShowDebug(sql_handle);
 			return false;
+		}
 	}
 	//checking char_db
 	if( SQL_ERROR == Sql_Query(sql_handle, "SELECT `char_id`,`account_id`,`char_num`,`name`,`class`,"