mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-06 21:22:22 +00:00
[Doors] Fix door saving for versions
- Door saving wasn't saving to the proper version on `#door save`
This commit is contained in:
parent
567d46c3d6
commit
284bb4eb8d
@ -852,11 +852,13 @@ void Doors::CreateDatabaseEntry()
|
||||
const auto& l = DoorsRepository::GetWhere(
|
||||
content_db,
|
||||
fmt::format(
|
||||
"zone = '{}' AND doorid = {}",
|
||||
"zone = '{}' AND version = {} AND doorid = {}",
|
||||
zone->GetShortName(),
|
||||
zone->GetInstanceVersion(),
|
||||
GetDoorID()
|
||||
)
|
||||
);
|
||||
|
||||
if (!l.empty()) {
|
||||
auto e = l[0];
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user