• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[JASS] BlzGroupAddGroupFast seems broken

Level 26
Joined
Feb 2, 2006
Messages
1,690
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 64
Joined
Aug 10, 2018
Messages
6,561
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.
 
Top