1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 10:56:38 +02:00

I haven't a clue why this was here but its not even remotely right.. fixes #1448

This commit is contained in:
Adam
2012-11-07 22:20:48 -05:00
parent 53e8cd18dc
commit 9ec482b7c2
+5 -2
View File
@@ -106,9 +106,12 @@ class DBMySQL : public Module, public Pipe
this->RunQueryResult(create[i]);
SQLResult res = this->RunQueryResult(this->SQL->BuildInsert(this->prefix + s_type->GetName(), obj->id, data));
if (res.GetID() > 0)
if (obj->id != res.GetID())
{
/* In this case obj is new, so place it into the object map */
obj->id = res.GetID();
s_type->objects.erase(obj->id);
s_type->objects[obj->id] = obj;
}
}
}