Replaced all occurrences of the constant '257' with the existing constant 'NUM_FILE_ENTRIES'

svn-id: r39824
This commit is contained in:
Paul Gilbert 2009-04-04 01:21:25 +00:00
parent 3d608dda3e
commit 07fb7735b5
5 changed files with 13 additions and 13 deletions

View file

@ -176,12 +176,12 @@ int createResFileEntry(int width, int height, int resType) {
printf("Executing untested createResFileEntry!\n");
exit(1);
for (i = 0; i < 257; i++) {
for (i = 0; i < NUM_FILE_ENTRIES; i++) {
if (!filesDatabase[i].subData.ptr)
break;
}
if (i >= 257) {
if (i >= NUM_FILE_ENTRIES) {
return (-19);
}