• 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.

A way for a new exploit?

Status
Not open for further replies.
bowser499 said:
And it can read HDD? O_O

What do you mean?

bowser499 said:
But still can't figure out why it fatals.

Well it seems to happen a few seconds into the game, and the game doesn't freeze so I don't think its a problem with dialogs.

Just check all the code that runs at a second or two and add debugging messages.
 
JASS:
        static method create takes nothing returns thistype
            local thistype this = thistype.allocate()
            local integer  i    = 0
            
            loop
                exitwhen i > @16@
                call CreateRaceDialog(Player(i))
                // (...)
                set i = i + 1
            endloop

            // (...)

            return this
        endmethod
Calling any player function with incorrect index range automaticaly aborts wc3 process. Proper range is: 0 - 15.
16th player's index is 15 instead of 16. Note that its 0-indexed based system.

@TH I'd rather use table/table array instead of those 2-D arrays anyway.
 
Status
Not open for further replies.
Top