mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 22:01:30 +00:00
#grid delete was deleting the grids everywhere (#1346)
Fix to only delete correct zone grid.
This commit is contained in:
parent
abf73947f4
commit
39f5949441
@ -1029,7 +1029,7 @@ void ZoneDatabase::ModifyGrid(Client *client, bool remove, uint32 id, uint8 type
|
||||
return;
|
||||
}
|
||||
|
||||
std::string query = StringFormat("DELETE FROM grid where id=%i", id);
|
||||
std::string query = StringFormat("DELETE FROM grid where id=%i and zoneid=%i", id, zoneid);
|
||||
auto results = QueryDatabase(query);
|
||||
|
||||
query = StringFormat("DELETE FROM grid_entries WHERE zoneid = %i AND gridid = %i", zoneid, id);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user