Skip to content

Commit

Permalink
const ziparchive* in add/removezip
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Nov 9, 2024
1 parent 046f2e2 commit ecb68a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/zip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ecb68a9

Please sign in to comment.