Core/DBLayer: Add an assert to detetct calls to invalid prepared statements.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-09-03 17:30:23 +02:00
parent d207f0d9a5
commit 5469af3775
2 changed files with 6 additions and 1 deletions

View File

@@ -310,6 +310,7 @@ void MySQLConnection::CommitTransaction()
MySQLPreparedStatement* MySQLConnection::GetPreparedStatement(uint32 index)
{
ASSERT(index < m_stmts.size());
return m_stmts[index];
}