non-empty string check

This commit is contained in:
WantedDV 2023-05-13 13:08:13 -02:30
parent 523dec3b61
commit b4b5ce5ae9

View File

@ -1056,7 +1056,7 @@ function system_devgui_gadget_think()
gadget = getDvarString("devgui_bot_gadget");
if (gadget != "")
if (gadget.size == 0)
{
bot_turn_on_gadget(getWeapon(gadget));
setDvar("devgui_bot_gadget", "");