Skip to content

Commit 7ecc50c

Browse files
Look up save name in the right folder
fixes #1829
1 parent 72df8fe commit 7ecc50c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/windows/save_creation.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub fn onOpen() void {
148148
while(true) {
149149
const path = std.fmt.allocPrint(main.stackAllocator.allocator, "saves/Save{}", .{num}) catch unreachable;
150150
defer main.stackAllocator.free(path);
151-
if(!main.files.cwd().hasDir(path)) break;
151+
if(!main.files.cubyzDir().hasDir(path)) break;
152152
num += 1;
153153
}
154154
const name = std.fmt.allocPrint(main.stackAllocator.allocator, "Save{}", .{num}) catch unreachable;

0 commit comments

Comments
 (0)