From f6ef70690903572537bf9c0254d864e840a45202 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 14 Feb 2013 01:24:29 -0500 Subject: [PATCH] Magiobiwan is silly --- modules/database/db_sql_live.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/database/db_sql_live.cpp b/modules/database/db_sql_live.cpp index 03de09294..9a769a35c 100644 --- a/modules/database/db_sql_live.cpp +++ b/modules/database/db_sql_live.cpp @@ -155,8 +155,10 @@ class DBMySQL : public Module, public Pipe return; Serialize::Type *s_type = obj->GetSerializableType(); if (s_type) + { this->RunQuery("DELETE FROM `" + this->prefix + s_type->GetName() + "` WHERE `id` = " + stringify(obj->id)); - s_type->objects.erase(obj->id); + s_type->objects.erase(obj->id); + } this->updated_items.erase(obj); }