Browse Source

Fixed a bug in get_panda_root

Josh Yelon 20 năm trước cách đây
mục cha
commit
818cf9d7a5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      dtool/src/dtoolutil/filename.cxx

+ 1 - 1
dtool/src/dtoolutil/filename.cxx

@@ -138,7 +138,7 @@ get_panda_root() {
       panda_root = "c:/cygwin";
     }
 
-    if (panda_root.empty() || panda_root[panda_root.length() - 1] != '\\') {
+    if (!panda_root.empty() || panda_root[panda_root.length() - 1] != '\\') {
       panda_root += '\\';
     }