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:
hendricks266 2019-12-22 10:20:26 +00:00 committed by Christoph Oelckers
parent deec38c827
commit f10ea8e630

View file

@ -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;