diff options
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; |