[JASS] BlzGroupAddGroupFast seems broken

Status
Not open for further replies.
Level 28
Joined
Feb 2, 2006
Messages
1,629
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?
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
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.
Top