Browse Source

Merge branch 'master' of https://git.eq2emu.com/devn00b/EQ2EMu

Emagi 1 year ago
parent
commit
4782e9acb7
2 changed files with 2 additions and 2 deletions
  1. 2 2
      EQ2/source/common/DatabaseNew.cpp
  2. BIN
      server/EQ2Login__Debug64.exe

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

@@ -157,14 +157,14 @@ bool DatabaseNew::Query(const char *query, ...) {
 		free(buf);
 	}
 
-	if (mysql_real_query(&mysql, buf, (unsigned long)num_chars) != 0) {
+	if (mysql_real_query(&mysql, buf, num_chars) != 0) {
 
 		if (mysql_errno(&mysql) == CR_SERVER_LOST || mysql_errno(&mysql) == CR_SERVER_GONE_ERROR) {
 			LogWrite(DATABASE__ERROR, 0, "Database", "Lost connection, attempting to recover and retry query...");
 			Connect();
 
 			// retry attempt of previous query (1 try and we give up)
-			if (mysql_real_query(&mysql, buf, (unsigned long)num_chars) != 0) {
+			if (mysql_real_query(&mysql, buf, num_chars) != 0) {
 				ret = false;
 			}
 		}

BIN
server/EQ2Login__Debug64.exe