mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 17:48:20 +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:
+3
-1
@@ -852,11 +852,13 @@ void Doors::CreateDatabaseEntry()
|
|||||||
const auto& l = DoorsRepository::GetWhere(
|
const auto& l = DoorsRepository::GetWhere(
|
||||||
content_db,
|
content_db,
|
||||||
fmt::format(
|
fmt::format(
|
||||||
"zone = '{}' AND doorid = {}",
|
"zone = '{}' AND version = {} AND doorid = {}",
|
||||||
zone->GetShortName(),
|
zone->GetShortName(),
|
||||||
|
zone->GetInstanceVersion(),
|
||||||
GetDoorID()
|
GetDoorID()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!l.empty()) {
|
if (!l.empty()) {
|
||||||
auto e = l[0];
|
auto e = l[0];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user