wc3edit.net https://forum.wc3edit.net/ |
|
Help fixing Typecasting Bug (function in desc) http://forum.wc3edit.net/deprotection-cheating-f64/help-fixing-typecasting-bug-function-in-desc-t38606.html |
Page 1 of 1 |
Author: | undeadjh [ June 20th, 2022, 8:48 am ] |
Post subject: | Help fixing Typecasting Bug (function in desc) |
Extracted .j file and used a simple regex to find consecutive returns. Feast your eyes on the problem: Code: function jt takes rect R returns unit return R return null endfunction Found some guides and helpful info (see below). Not clear how to fix given examples taking and returning a unit and the above is taking and returning different variable types. Please help Thank you!! Quote: the way to fix it (IIRC): Code: function returnBug takes unit u returns unit return u return null endfunction This is an example for a return bug. It has 2 returns, 1 after the other. Code: function fix1 takes unit u returns unit return u endfunction function returnBug takes unit u returns unit call fix1(u) return u endfunction Now those are 2 functions, each returning 1 value. Though I can't understand how it works, it keeps the maps working. If at all helpful below is where the return bug func is used. Would appear to be for pathing. Spoiler:
|
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |