| 06-14-2009, 06:35 PM | #1 |
Hey, I been reading the changes that will come with the new patch and I saw that they been touching JASS, I have a very old map that people still plays, and just to make sure, if the map doesn't use the return bug it should work perfectly, right? JASS:
private function H2I takes handle h returns integer
return h
return 0
endfunction
Thanks! |
| 06-14-2009, 06:49 PM | #2 |
yes |
| 06-14-2009, 07:57 PM | #3 |
Not necessarily. If there were other bugs in the map before the changes, they won't get magically solved. However, there will not be any new problems as long as it doesn't use any return bug exploiters. (I just want to give an answer to what you actually was asking, an answer to what people assume you ask is often not enough.) |
| 06-14-2009, 09:12 PM | #4 |
It seems what you did was answer the question you assumed he asked. However, it is hard to see where does that assumption come from. The question was clear, and akolyt0r's answer was good enough. |
| 06-14-2009, 11:38 PM | #5 |
Your problem also has an easy fix (in most cases). If that is the function you want to correct simply replace it with: JASS:private function H2I takes handle h returns integer return GetHandleId(h) endfunction |
| 06-15-2009, 04:36 AM | #6 |
find and replace h2i >> GetHandleId dont look for troubles just replace function names. |
| 06-15-2009, 01:47 PM | #7 |
Thanks everyone, I just wanted to make sure that the map needs no inspection at all, because it doesn't make use of this bug. |
