diff options
author | Adam <Adam@anope.org> | 2011-11-15 16:16:38 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-11-15 16:16:38 -0500 |
commit | 9ed203c0cb137997241e3094a9430ef593d2b1f0 (patch) | |
tree | 1ee0048651e3754124639afe29608c491d5d6b35 /modules/database/db_sql.cpp | |
parent | b5ff856f47d8e54d12c568462a06351633c29610 (diff) |
Fixed crash on shutdown & a compiler warning
Diffstat (limited to 'modules/database/db_sql.cpp')
-rw-r--r-- | modules/database/db_sql.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/database/db_sql.cpp b/modules/database/db_sql.cpp index e083204d4..775c23123 100644 --- a/modules/database/db_sql.cpp +++ b/modules/database/db_sql.cpp @@ -172,10 +172,10 @@ class DBSQL : public Module SQLQuery query("SELECT * FROM `" + sb->GetName() + "`"); SQLResult res = this->sql->RunQuery(query); - for (int i = 0; i < res.Rows(); ++i) + for (int j = 0; j < res.Rows(); ++j) { Serializable::serialized_data data; - const std::map<Anope::string, Anope::string> &row = res.Row(i); + const std::map<Anope::string, Anope::string> &row = res.Row(j); for (std::map<Anope::string, Anope::string>::const_iterator rit = row.begin(), rit_end = row.end(); rit != rit_end; ++rit) data[rit->first] << rit->second; |