use empty

This commit is contained in:
m 2023-05-14 03:02:11 -05:00
parent 966458a129
commit 3748b5e51f

View File

@ -56,7 +56,7 @@ namespace script
base_name = name.substr(0, name.size() - 4); // .gsc suffix will be readded by Scr_LoadScript
}
if (base_name.size() < 1)
if (base_name.empty())
{
printf("Not loading GSC script '%s' due to invalid name.\n", name.data());
return;