mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Crash fix
git-svn-id: https://svn.eduke32.com/eduke32@4905 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
419ea3ed40
commit
130244a302
1 changed files with 6 additions and 1 deletions
|
@ -455,10 +455,15 @@ int32_t removesearchpath(const char *p)
|
||||||
|
|
||||||
void removesearchpaths_withuser(int32_t usermask)
|
void removesearchpaths_withuser(int32_t usermask)
|
||||||
{
|
{
|
||||||
for (searchpath_t *srch = searchpathhead; srch; srch = srch->next)
|
searchpath_t *next;
|
||||||
|
|
||||||
|
for (searchpath_t *srch = searchpathhead; srch; srch = next)
|
||||||
{
|
{
|
||||||
|
next = srch->next;
|
||||||
|
|
||||||
if (srch->user & usermask)
|
if (srch->user & usermask)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (srch == searchpathhead)
|
if (srch == searchpathhead)
|
||||||
searchpathhead = srch->next;
|
searchpathhead = srch->next;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue