only set password asset when not already set

This commit is contained in:
Felix Salcher 2025-06-28 12:05:26 +02:00
parent 559415f285
commit 5fc0c69065
No known key found for this signature in database

View file

@ -401,7 +401,8 @@ bool CPasswordInputField::draw(const SRenderData& data) {
fontCol.a = DOTALPHA;
}
} else if (passwordLength != 0) {
password.asset = g_pRenderer->asyncResourceGatherer->getAssetByID(password.resourceID);
if (!password.asset)
password.asset = g_pRenderer->asyncResourceGatherer->getAssetByID(password.resourceID);
if (password.asset) {
auto passSize = password.asset->texture.m_vSize;