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

This Serialize::Destroy method isn't actually needed anymore. Fixes weirdness from a few Serializable items we had on the stack. Added a comment about why operator< in Reference fails.

This commit is contained in:
Adam
2013-02-14 20:57:40 -05:00
parent f0875c5d85
commit 391f2822c8
5 changed files with 16 additions and 21 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ class DBSQL : public Module, public Pipe
void OnSerializableDestruct(Serializable *obj) anope_override
{
Serialize::Type *s_type = obj->GetSerializableType();
if (s_type)
if (s_type && obj->id > 0)
this->RunBackground("DELETE FROM `" + this->prefix + s_type->GetName() + "` WHERE `id` = " + stringify(obj->id));
this->updated_items.erase(obj);
}