summaryrefslogtreecommitdiff
path: root/controller/JSONDB.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-11-08 00:05:18 +0000
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-11-08 00:05:18 +0000
commit360c84e0351728b0c0479ceddba924997acb46e4 (patch)
treedefdc0804107db86c03fc4eb142d523340154a79 /controller/JSONDB.hpp
parent4868d21526d7cbced5786dc9359a6ded4200e284 (diff)
downloadinfinitytier-360c84e0351728b0c0479ceddba924997acb46e4.tar.gz
infinitytier-360c84e0351728b0c0479ceddba924997acb46e4.zip
Minor fixes.
Diffstat (limited to 'controller/JSONDB.hpp')
-rw-r--r--controller/JSONDB.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/JSONDB.hpp b/controller/JSONDB.hpp
index a9a5e6ac..bd1ae5a5 100644
--- a/controller/JSONDB.hpp
+++ b/controller/JSONDB.hpp
@@ -79,7 +79,7 @@ public:
{
for(std::map<std::string,_E>::iterator i(_db.lower_bound(prefix));i!=_db.end();) {
if ((i->first.length() >= prefix.length())&&(!memcmp(i->first.data(),prefix.data(),prefix.length()))) {
- if (!func(i->first,get(i->second.obj,maxSinceCheck))) {
+ if (!func(i->first,get(i->first,maxSinceCheck))) {
std::map<std::string,_E>::iterator i2(i); ++i2;
this->erase(i->first);
i = i2;