From 27da2e10ff3505b16e10ece4ea86f82bac877b8c Mon Sep 17 00:00:00 2001 From: mittorn Date: Sun, 9 Feb 2020 00:29:56 +0700 Subject: [PATCH] filesystem: fix const cast --- engine/common/filesystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/common/filesystem.c b/engine/common/filesystem.c index b057b89a..5140c47d 100644 --- a/engine/common/filesystem.c +++ b/engine/common/filesystem.c @@ -205,7 +205,7 @@ static void FS_BackupFileName( file_t *file, const char *path, uint options ) if( path == NULL ) { if( file->backup_path ) - Mem_Free( file->backup_path ); + Mem_Free( (void*)file->backup_path ); if( file == fs_last_readfile ) FS_EnsureOpenFile( NULL ); }