mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 06:21:28 +00:00
[Doors] Fix door saving for versions (#4905)
* [Doors] Fix door saving for versions - Door saving wasn't saving to the proper version on `#door save` * Update doors.cpp --------- Co-authored-by: Chris Miles <akkadius1@gmail.com>
This commit is contained in:
parent
4e28bcf85e
commit
3d70063a68
@ -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 = {} OR version = -1) AND doorid = {}",
|
||||||
zone->GetShortName(),
|
zone->GetShortName(),
|
||||||
|
zone->GetInstanceVersion(),
|
||||||
GetDoorID()
|
GetDoorID()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!l.empty()) {
|
if (!l.empty()) {
|
||||||
auto e = l[0];
|
auto e = l[0];
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user