mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Add check against MAXVOXELS in qloadkvx
git-svn-id: https://svn.eduke32.com/eduke32@8472 1a8010ca-5511-0410-912e-c29ae57300e0 # Conflicts: # source/build/src/engine.cpp
This commit is contained in:
parent
deec38c827
commit
f10ea8e630
1 changed files with 3 additions and 0 deletions
|
@ -10157,6 +10157,9 @@ void videoNextPage(void)
|
|||
|
||||
int32_t qloadkvx(int32_t voxindex, const char *filename)
|
||||
{
|
||||
if ((unsigned)voxindex >= MAXVOXELS)
|
||||
return -1;
|
||||
|
||||
auto fil = fileSystem.OpenFileReader(filename, 0);
|
||||
if (!fil.isOpen())
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue