mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
Fix Sryder's crash (incorrect setting of dir_on when searching in subfolders).
Also, correct a minor copypaste failure in one of the I_Errors' messages.
This commit is contained in:
parent
2e158f2c21
commit
c5e16f183e
1 changed files with 2 additions and 2 deletions
|
@ -701,7 +701,7 @@ void searchfilemenu(char *tempname)
|
||||||
|
|
||||||
if (tempname)
|
if (tempname)
|
||||||
{
|
{
|
||||||
dir_on[menudepthleft] = first;
|
dir_on[menudepthleft] = 0; //first; -- can't be first, causes problems
|
||||||
Z_Free(tempname);
|
Z_Free(tempname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -886,7 +886,7 @@ boolean preparefilemenu(boolean samedepth)
|
||||||
|
|
||||||
if ((menudepthleft != menudepth-1) // now for UP... entry
|
if ((menudepthleft != menudepth-1) // now for UP... entry
|
||||||
&& !(coredirmenu[0] = Z_StrDup(va("%c\5UP...", EXT_UP))))
|
&& !(coredirmenu[0] = Z_StrDup(va("%c\5UP...", EXT_UP))))
|
||||||
I_Error("searchfilemenu(): could not create \"UP...\".");
|
I_Error("preparefilemenu(): could not create \"UP...\".");
|
||||||
|
|
||||||
menupath[menupathindex[menudepthleft]] = 0;
|
menupath[menupathindex[menudepthleft]] = 0;
|
||||||
sizecoredirmenu = (numfolders+pos); // just in case things shrink between opening and rewind
|
sizecoredirmenu = (numfolders+pos); // just in case things shrink between opening and rewind
|
||||||
|
|
Loading…
Reference in a new issue