Fix crash when compiled with Clang

FossilOrigin-Name: 5e7a0895eb30bb141156e3aaecbc9292d6c2d7ba6399470097f26811a672d2e8
This commit is contained in:
Jonathan Schleifer 2024-08-02 11:09:08 +00:00
parent 133382170f
commit f5cd2c4046
4 changed files with 15 additions and 14 deletions

View file

@ -254,10 +254,10 @@ mapmodelreset()
mapmodels.setsize(0);
};
mapmodelinfo &
mapmodelinfo *
getmminfo(int i)
{
return i < mapmodels.length() ? mapmodels[i]->mmi : *(mapmodelinfo *)0;
return i < mapmodels.length() ? &mapmodels[i]->mmi : NULL;
};
COMMAND(mapmodel, ARG_5STR);