Fix beacon crash (#512)

This commit is contained in:
Alezito2008
2026-03-05 04:17:17 -03:00
committed by GitHub
parent 8cdbf08900
commit 87e3bd193c

View File

@@ -387,8 +387,10 @@ vector<HtmlString> *IUIScene_BeaconMenu::GetSectionHoverText(ESceneSection eSect
desc = new vector<HtmlString>(); desc = new vector<HtmlString>();
HtmlString string( app.GetString(MobEffect::effects[effectId]->getDescriptionId()), eHTMLColor_White ); if (effectId < MobEffect::e_MobEffectIcon_COUNT && MobEffect::effects[effectId]) {
desc->push_back( string ); HtmlString string( app.GetString(MobEffect::effects[effectId]->getDescriptionId()), eHTMLColor_White );
desc->push_back( string );
}
} }
break; break;
} }