]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/cvarlist.qc
Add strfree to reduce explicit use of strunzone/string_null
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / cvarlist.qc
index 98dba015db35a9dd58d7bbc409eb42ee158833e6..9587d5432d83c7ebc80dcbac53a26dfc0af370e8 100644 (file)
@@ -107,8 +107,7 @@ void XonoticCvarList_setSelected(entity me, float i)
        if(me.nItems == 0)
                return;
 
-       if(me.cvarType)
-               strunzone(me.cvarType);
+       strfree(me.cvarType);
        strcpy(me.cvarName, bufstr_get(me.handle, me.selectedItem));
        strcpy(me.cvarDescription, cvar_description(me.cvarName));
        strcpy(me.cvarDefault, cvar_defstring(me.cvarName));