Just to be sure..

This commit is contained in:
shavitush 2017-06-03 21:36:39 +03:00
parent 63c8fc2a79
commit 795c45df30

View File

@ -970,13 +970,15 @@ public void OnClientCookiesCached(int client)
}
gB_Auto[client] = (strlen(sCookie) > 0)? view_as<bool>(StringToInt(sCookie)):true;
int style = 0;
if(gH_StyleCookie != null)
{
GetClientCookie(client, gH_StyleCookie, sCookie, 4);
style = StringToInt(sCookie);
}
gBS_Style[client] = view_as<BhopStyle>((strlen(sCookie) > 0)? StringToInt(sCookie):0);
gBS_Style[client] = view_as<BhopStyle>((style >= 0 && style < gI_Styles)? style:0);
UpdateAutoBhop(client);
}