summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1fb71d9)
raw | patch | inline | side by side (parent: 1fb71d9)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Fri, 8 Apr 2016 03:31:35 +0000 (06:31 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Fri, 8 Apr 2016 03:31:35 +0000 (06:31 +0300) |
src/game/g_gui.pas | patch | blob | history |
diff --git a/src/game/g_gui.pas b/src/game/g_gui.pas
index 899b35445dd9271ff7f88748e12a9184cb04aa4e..7acbf0b101213d9203f4c9562aa20bf4c868523c 100644 (file)
--- a/src/game/g_gui.pas
+++ b/src/game/g_gui.pas
while sm <> '' do
begin
i := Pos('|', sm);
- if i = 0 then i := length(sm);
+ if i = 0 then i := length(sm)+1;
sc := Copy(sm, 1, i-1);
- Delete(sm, 1, i);;
+ Delete(sm, 1, i);
if FindFirst(path+sc, faAnyFile, SR) = 0 then repeat AddItem(SR.Name); until FindNext(SR) <> 0;
FindClose(SR);
end;