diff --git a/src/client/component/script.cpp b/src/client/component/script.cpp index 9b9475b7..52e4db34 100644 --- a/src/client/component/script.cpp +++ b/src/client/component/script.cpp @@ -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;