fix M_StringJoin calls

This commit is contained in:
Roman Fomin 2024-05-30 20:59:39 +07:00
parent 51cb24de4a
commit 76604bca42
2 changed files with 2 additions and 2 deletions

View File

@ -743,7 +743,7 @@ static void LoadBaseFile(void)
if (d.dir && d.func)
{
char *s = M_StringJoin(d.func(), DIR_SEPARATOR_S, d.dir, NULL);
char *s = M_StringJoin(d.func(), DIR_SEPARATOR_S, d.dir);
result = W_InitBaseFile(s);
free(s);
}

View File

@ -399,7 +399,7 @@ static w_handle_t base_handle;
boolean W_InitBaseFile(const char *path)
{
char *filename =
M_StringJoin(path, DIR_SEPARATOR_S, PROJECT_SHORTNAME ".pk3", NULL);
M_StringJoin(path, DIR_SEPARATOR_S, PROJECT_SHORTNAME ".pk3");
w_type_t result = w_zip_module.Open(filename, &base_handle);