[JASS] "Variable length is uninitalized"

Status
Not open for further replies.
Level 2
Joined
Nov 29, 2021
Messages
8
Why is this happening and how to fix it?
 

Attachments

  • Bug+.PNG
    Bug+.PNG
    31.4 KB · Views: 49
Why is this happening and how to fix it?
pjass unfortunately displays the error on the wrong line. It's the line set length = length + 1. You didn't assign any previous value to it and reading an uninitialized variable would abort the execution.
 
Status
Not open for further replies.
Back
Top