• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] BlzGroupAddGroupFast seems broken

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