Sim

ioquake3 FS_SV_FOpenFileRead crash

Sim
Aug 6th, 2012
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.58 KB | None | 0 0
  1. Index: files.c
  2. ===================================================================
  3. --- files.c     (revision 2304)
  4. +++ files.c     (working copy)
  5. @@ -739,11 +739,12 @@
  6.                         fsh[f].handleFiles.file.o = fopen( ospath, "rb" );
  7.                         fsh[f].handleSync = qfalse;
  8.                 }
  9. +       }
  10.  
  11. -               if ( !fsh[f].handleFiles.file.o )
  12. -               {
  13. -                       f = 0;
  14. -               }
  15. +       // File not found
  16. +       if ( !fsh[f].handleFiles.file.o )
  17. +       {
  18. +               f = 0;
  19.         }
  20.  
  21.         *fp = f;
Advertisement
Add Comment
Please, Sign In to add comment