mirror of https://github.com/axmolengine/axmol.git
closed #4104: Crash if invoking Array::initWithObjects()
This commit is contained in:
parent
0b6858bdde
commit
23082c0d6c
|
@ -517,7 +517,8 @@ bool __Array::initWithObjects(Ref* object, ...)
|
|||
do
|
||||
{
|
||||
CC_BREAK_IF(object == nullptr);
|
||||
|
||||
CC_BREAK_IF(!initWithCapacity(1));
|
||||
|
||||
va_list args;
|
||||
va_start(args, object);
|
||||
|
||||
|
|
Loading…
Reference in New Issue