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

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

No files matched your search

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