[Doors] Fix door saving for versions

- Door saving wasn't saving to the proper version on `#door save`
This commit is contained in:
nytmyr
2025-05-23 17:34:20 -05:00
parent 567d46c3d6
commit 284bb4eb8d
+3 -1
View File
@@ -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];