Core/Misc: Fix build

This commit is contained in:
jackpoz
2020-03-01 19:23:48 +01:00
parent ddf2f60c13
commit 9ba4694ff2

View File

@@ -84,7 +84,7 @@ void PreparedStatement::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
}