ui: Don't parse abstract_ui codes if there are no attached UIs

This commit is contained in:
Thiago de Arruda 2015-01-09 09:18:23 -03:00
parent 5d2f923fcf
commit a282d06a67

View File

@ -362,6 +362,10 @@ static void set_highlight_args(int mask)
static void parse_abstract_ui_codes(uint8_t *ptr, int len)
{
if (!ui_count) {
return;
}
int arg1 = 0, arg2 = 0;
uint8_t *end = ptr + len, *p, c;
bool update_cursor = false;