attempt to fix a crash

This commit is contained in:
BenCat07 2018-03-24 14:38:08 +01:00 committed by GitHub
parent 591636680a
commit 5ecdf1f0a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -391,6 +391,8 @@ void _FASTCALL emoji(CachedEntity *ent)
{
float size = emoji_esp_scaling ? fabs(hbm.y - hbx.y)
: float(emoji_esp_size);
if (!size || !float(emoji_min_size)
return;
if (emoji_esp_scaling && (size < float(emoji_min_size)))
{
size = float(emoji_min_size);