From 154d11acc0afdf3639e6a07c931e35674102e44a Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Sat, 25 Sep 2010 01:02:40 +0200 Subject: Core/DBLayer: - Fix another pesky linux specific compile error. (Thanks to Derex/Aokromes) - Fix a typo in an assertion. (Thanks to Derex/Aokromes) - Add proper zero termination in SetStructuredValue to get rid of memory issues that arose in the last few commits. - Fix a crash caused by vsprintf´ing std::string in SystemMgr::LoadVersion() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --HG-- branch : trunk --- src/server/shared/Database/QueryResult.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/shared/Database/QueryResult.h') diff --git a/src/server/shared/Database/QueryResult.h b/src/server/shared/Database/QueryResult.h index aa088b5f121..12478a2fc4a 100755 --- a/src/server/shared/Database/QueryResult.h +++ b/src/server/shared/Database/QueryResult.h @@ -45,7 +45,7 @@ class ResultSet Field *Fetch() const { return m_currentRow; } const Field & operator [] (uint32 index) const { - ASSERT(index < m_rowCount); + ASSERT(index < m_fieldCount); return m_currentRow[index]; } -- cgit v1.2.3