• 🏆 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!

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.
 

Bannar

Code Reviewer
Level 26
Joined
Mar 19, 2008
Messages
3,140
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