diff --git a/src/gui/windows/save_creation.zig b/src/gui/windows/save_creation.zig index 341cf77c2..cd5e451ec 100644 --- a/src/gui/windows/save_creation.zig +++ b/src/gui/windows/save_creation.zig @@ -50,13 +50,7 @@ fn findValidFolderName(allocator: NeverFailingAllocator, name: []const u8) []con defer main.stackAllocator.free(escapedName); for(name, 0..) |char, i| { escapedName[i] = switch(char) { - 'a'...'z', - 'A'...'Z', - '0'...'9', - '_', - '-', - '.', - ' ' => char, + 'a'...'z', 'A'...'Z', '0'...'9', '_', '-', '.', ' ' => char, 128...255 => char, else => '-', }; diff --git a/src/gui/windows/save_selection.zig b/src/gui/windows/save_selection.zig index 055e2ce9e..c2c1e7aa0 100644 --- a/src/gui/windows/save_selection.zig +++ b/src/gui/windows/save_selection.zig @@ -140,7 +140,7 @@ pub fn onOpen() void { } std.sort.insertion(WorldInfo, worldList.items, {}, struct { - fn lessThan(_: void, lhs: WorldInfo, rhs: WorldInfo)bool { + fn lessThan(_: void, lhs: WorldInfo, rhs: WorldInfo) bool { return rhs.lastUsedTime -% lhs.lastUsedTime < 0; } }.lessThan);