mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
avoid assert
This commit is contained in:
parent
9c1361f02a
commit
79050b0db3
@ -90,7 +90,6 @@ do_partial_lru_update(int num_updates) {
|
|||||||
|
|
||||||
AdaptiveLruPageStaticList *node = start_node;
|
AdaptiveLruPageStaticList *node = start_node;
|
||||||
do {
|
do {
|
||||||
nassertv(node != &_static_list);
|
|
||||||
AdaptiveLruPageStaticList *next = (AdaptiveLruPageStaticList *)node->_next;
|
AdaptiveLruPageStaticList *next = (AdaptiveLruPageStaticList *)node->_next;
|
||||||
if (--num_updates <= 0) {
|
if (--num_updates <= 0) {
|
||||||
return;
|
return;
|
||||||
@ -100,7 +99,7 @@ do_partial_lru_update(int num_updates) {
|
|||||||
node->remove_from_list();
|
node->remove_from_list();
|
||||||
node->insert_before(&_static_list);
|
node->insert_before(&_static_list);
|
||||||
node = next;
|
node = next;
|
||||||
} while (node != start_node);
|
} while (node != start_node && node != &_static_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user