mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Display error message instead of mysterious crash when encountering unknown BamObjectCode
This commit is contained in:
parent
586c067d69
commit
f152c238d5
@ -1214,6 +1214,11 @@ p_read_object() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return p_read_object();
|
return p_read_object();
|
||||||
|
|
||||||
|
default:
|
||||||
|
bam_cat.error()
|
||||||
|
<< "Encountered invalid BamObjectCode 0x" << hex << (int)boc << dec << ".\n";
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// An object definition in a Bam file consists of a TypeHandle
|
// An object definition in a Bam file consists of a TypeHandle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user