[JASS] BlzGroupAddGroupFast seems broken

Status
Not open for further replies.
Level 29
Joined
Feb 2, 2006
Messages
1,691
Whenever I work with BlzGroupAddGroupFast or use system using it, it seems completely broken. The target group stays empty and FirstOfGroup returns null.
For example with this function:

JASS:
function CopyGroup takes group whichGroup returns group
    local group copy = CreateGroup()
    //call BlzGroupAddGroupFast(copy, whichGroup) // seems broken
    call GroupAddGroup(whichGroup, copy)
    return copy
endfunction
or are the parameter names simply wrong and reversed?
 
Looks like you got the parameters backwards. The Lua plugin for VSC has intellisense for that:
1712006051506.png

I imagine the vJass plugin does the same thing.
 
Status
Not open for further replies.
Back
Top