Avoid crash on failure to open HAM file

This commit is contained in:
Kp 2012-12-23 22:39:29 +00:00
parent c534e418b5
commit c3bde51320

View file

@ -276,6 +276,11 @@ void bm_read_extra_robots(char *fname,int type)
int t,i,version;
fp = PHYSFSX_openReadBuffered(fname);
if (!fp)
{
Error("Failed to open HAM file \"%s\"", fname);
return;
}
if (type == 2) {
int sig;