• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[JASS] BlzGroupAddGroupFast seems broken

Level 26
Joined
Feb 2, 2006
Messages
1,696
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,597
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