Fix beacon crash (#512)
This commit is contained in:
parent
8cdbf08900
commit
87e3bd193c
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue