Core/Misc: Fix build

(cherry picked from commit 9ba4694ff2)
This commit is contained in:
jackpoz
2020-03-01 19:23:48 +01:00
committed by Shauren
parent 144cfc2bce
commit 8fdeaa2797

View File

@@ -84,7 +84,7 @@ void PreparedStatementBase::BindParameters(MySQLPreparedStatement* stmt)
++pos;
}
#ifdef _DEBUG
if (i < stmt->m_paramCount)
if (pos < stmt->m_paramCount)
TC_LOG_WARN("sql.sql", "[WARNING]: BindParameters() for statement %u did not bind all allocated parameters", m_index);
#endif
}