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

[Solved] (BUG) The Return of the Return Bug (XD)

Status
Not open for further replies.
Level 5
Joined
Dec 12, 2011
Messages
116
Hey guys.
I discovered the return bug few days ago.
Just for curiosity, for interest in seeing the WE not pointing an syntax error on it, I decided to just put the codes in my map and save it.

JASS:
function H2I takes handle h returns integer
     return h
     return 0
endfunction

function B2I takes boolean b returns integer
     return b
     return 0
endfunction

When I saved, I got errors.
The famous Return Bug just bugged with me :)P)

Take a look at the attachments.

Why, guys, why?

EDIT:
PS: I am using normal TFT editor, non-vJass, WE version 6059

hamsterpellet
 

Attachments

  • ReturnBugBug.jpg
    ReturnBugBug.jpg
    54.5 KB · Views: 91
  • ReturnBugBug2.jpg
    ReturnBugBug2.jpg
    56.3 KB · Views: 65
Status
Not open for further replies.
Top