mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
const mistake
This commit is contained in:
parent
2ea1a241a1
commit
8b0461fadd
@ -606,7 +606,7 @@ remove_task_by_name(AsyncTask *task) {
|
||||
if (!task->get_name().empty()) {
|
||||
// We have to scan linearly through all of the tasks with the same
|
||||
// name.
|
||||
TasksByName::const_iterator tbni = _tasks_by_name.lower_bound(task);
|
||||
TasksByName::iterator tbni = _tasks_by_name.lower_bound(task);
|
||||
while (tbni != _tasks_by_name.end()) {
|
||||
if ((*tbni) == task) {
|
||||
_tasks_by_name.erase(tbni);
|
||||
|
Loading…
x
Reference in New Issue
Block a user