mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
fix bam loading for multibundle characters
This commit is contained in:
parent
6640fd4acf
commit
e6e7a3e4a9
@ -160,7 +160,14 @@ fillin(DatagramIterator &scan, BamReader* manager) {
|
||||
num_bundles = scan.get_uint16();
|
||||
}
|
||||
|
||||
for (int i = 0; i < num_bundles; ++i) {
|
||||
nassertv(num_bundles >= 1);
|
||||
|
||||
// Bundle 0. We already have a slot for this one.
|
||||
manager->read_pointer(scan);
|
||||
|
||||
// Remaining bundles. Push a new slot for each one.
|
||||
for (int i = 1; i < num_bundles; ++i) {
|
||||
manager->read_pointer(scan);
|
||||
_bundles.push_back(NULL);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user