diff --git a/dlls/sqlite/sqlite_amx.cpp b/dlls/sqlite/sqlite_amx.cpp index b624f9e9..931e131b 100755 --- a/dlls/sqlite/sqlite_amx.cpp +++ b/dlls/sqlite/sqlite_amx.cpp @@ -158,6 +158,8 @@ int SQLResult::Query(SQL *cn, const char *query) return 1; } else { + if (!m_rowCount) + return -1; m_hasData = true; this->m_fieldNames = new String[m_columnCount]; for (unsigned int i = 0; i < m_columnCount; i++)