fix crash - bug in savegame

This commit is contained in:
Ondrej Novak 2025-02-09 10:59:13 +01:00
parent e78b79bbd8
commit 5746bed249
2 changed files with 5 additions and 5 deletions

View file

@ -685,7 +685,7 @@ static int process_with_params(const char *cmd, const char *args) {
if (istrcmp(cmd, "portal-jump") == 0) {
if (check_file_exists(build_pathname(2,gpathtable[SR_MAP], args))) {
TMA_LOADLEV lev;
strcopy_n(lev.name,args,12);
strcopy_n(lev.name,args,sizeof(lev.name));
lev.start_pos = 0;
macro_load_another_map(&lev);
return 1;