qqshka noticed that the demolist in linux doesn't care about array sizes

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2830 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2007-12-28 00:13:22 +00:00
parent ac82538714
commit bc41311478

View file

@ -215,6 +215,8 @@ void Cluster_BuildAvailableDemoList(cluster_t *cluster)
{ {
for(;;) for(;;)
{ {
if (cluster->availdemoscount == sizeof(cluster->availdemos)/sizeof(cluster->availdemos[0]))
break;
ent = readdir(dir); ent = readdir(dir);
if (!ent) if (!ent)
break; break;