mirror of https://github.com/axmolengine/axmol.git
set default priority to avoid warning
when call 'scheduleUpdate' and 'unscheuleUpdate' several times in one frame, it will get warning "warning: you CANNOT change update priority in scheduled function"
This commit is contained in:
parent
a1afa62000
commit
36e44dbaf9
|
@ -447,6 +447,7 @@ void Scheduler::appendIn(_listEntry **list, const ccSchedulerFunc& callback, voi
|
|||
listElement->callback = callback;
|
||||
listElement->target = target;
|
||||
listElement->paused = paused;
|
||||
listElement->priority = 0;
|
||||
listElement->markedForDeletion = false;
|
||||
|
||||
DL_APPEND(*list, listElement);
|
||||
|
|
Loading…
Reference in New Issue