From 3748b5e51f43a13ef375065962a25af82c72e910 Mon Sep 17 00:00:00 2001 From: m Date: Sun, 14 May 2023 03:02:11 -0500 Subject: [PATCH] use empty --- src/client/component/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;