1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 07:16:39 +02:00

Fixed crash on shutdown & a compiler warning

This commit is contained in:
Adam
2011-11-15 16:16:38 -05:00
parent b5ff856f47
commit 9ed203c0cb
3 changed files with 12 additions and 10 deletions
+2 -2
View File
@@ -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;