fix crash entering sopka.map for second time

This commit is contained in:
Ondřej Novák 2025-02-05 10:41:40 +01:00
parent 93caf370e4
commit 0ae638276e
3 changed files with 10 additions and 9 deletions

View file

@ -455,7 +455,7 @@ static PARSED_COMMAND parse_command(const char *cmd) {
extern int ghost_walls;
extern int nofloors;
static int add_file_to_console(const char *name, LIST_FILE_TYPE , size_t, void *ctx) {
static int add_file_to_console(const char *name, LIST_FILE_TYPE _, size_t __, void *ctx) {
int *cnt = (void *)ctx;
char buff[20] = "";
for (int i = 0; i < 19; ++i) buff[i] = ' ';