mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-05 21:52:26 +00:00
Not sure why we are trying to detete id 0 objects [skip ci]
This commit is contained in:
parent
5dc351e5d5
commit
bf0322f8f6
@ -736,7 +736,10 @@ Ground_Spawns* ZoneDatabase::LoadGroundSpawns(uint32 zone_id, int16 version, Gro
|
|||||||
|
|
||||||
void ZoneDatabase::DeleteObject(uint32 id)
|
void ZoneDatabase::DeleteObject(uint32 id)
|
||||||
{
|
{
|
||||||
// delete record of object
|
if (id == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
std::string query = StringFormat("DELETE FROM object WHERE id = %i", id);
|
std::string query = StringFormat("DELETE FROM object WHERE id = %i", id);
|
||||||
auto results = QueryDatabase(query);
|
auto results = QueryDatabase(query);
|
||||||
if (!results.Success()) {
|
if (!results.Success()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user