From ecb68a9047b7c55b963d3ccb710f485e2c354e6a Mon Sep 17 00:00:00 2001 From: Alex Foster <123afoster@gmail.com> Date: Fri, 8 Nov 2024 23:19:39 -0800 Subject: [PATCH] const ziparchive* in add/removezip --- src/shared/zip.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/zip.cpp b/src/shared/zip.cpp index a917db17..bc0cbeaf 100644 --- a/src/shared/zip.cpp +++ b/src/shared/zip.cpp @@ -334,7 +334,7 @@ bool addzip(const char *name, const char *mount = nullptr, const char *strip = n { concatstring(pname, ".zip"); } - ziparchive *exists = findzip(pname); + const ziparchive *exists = findzip(pname); if(exists) { conoutf(Console_Error, "already added zip %s", pname); @@ -374,7 +374,7 @@ bool removezip(const char *name) { concatstring(pname, ".zip"); } - ziparchive *exists = findzip(pname); + const ziparchive *exists = findzip(pname); if(!exists) { conoutf(Console_Error, "zip %s is not loaded", pname);