mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 11:17:05 -04:00
Fix compiler error on windows after update.
This commit is contained in:
parent
628404393c
commit
2295ddf310
@ -31,7 +31,7 @@ pub const Compression = struct {
|
||||
|
||||
while(try walker.next()) |entry| {
|
||||
if(entry.kind == .file) {
|
||||
var relPath = entry.path;
|
||||
var relPath: []const u8 = entry.path;
|
||||
if(builtin.os.tag == .windows) { // I hate you
|
||||
const copy = main.stackAllocator.dupe(u8, relPath);
|
||||
std.mem.replaceScalar(u8, copy, '\\', '/');
|
||||
|
Loading…
x
Reference in New Issue
Block a user