chore: adjust asset data when taking from global asset pools

This commit is contained in:
Jan Laupetin committed 2025-12-23 15:40:52 +01:00
1 parent 7bf7bf93de
commit 8eb79da8a2
14 files changed
+92 -29

No files matched your search

+3
View File
@@ -17,6 +17,9 @@ scr_string_t AssetWriter::UseScriptString(const scr_string_t scrString) const
if (m_asset->m_zone == &m_zone)
return scrString;
// This swap should have already been performed in GlobalAssetPoolsLoader
assert(false);
const auto strValue = m_asset->m_zone->m_script_strings.CValue(scrString);
return m_zone.m_script_strings.GetScriptString(strValue);
}