| 07-09-2009, 11:10 PM | #1 |
Hello dudes. I'm experiencing an extremely wierd bug. I don't think that the hive members can solve this (it's very odd), so I turned to you wc3c'ers instead... I'm not sure where to start, cuase saying it out loud just won't make you belive me... Well I have no other option anyway: A simple "set integer = integer + 1" kills my spell. I don't understand why but it just outright kills my spell, just like "return " would do. Maybe I shouldn't jump to conclusions too fast, because it might be other things. I've tried a lot of possibilites but the only way to fix this is by adding the comment prefixes to the line. Here's my spell's code. The line which bugs is located directly after declaring locals under function Actions, it says "//set BugfixInt = BugfixInt + 1" Please don't comment on how badly it's done, cause I know it is (damn those structs why arn't they easier to understand )[Code removed because problem is solved] Here's the map it's for so you can test... [Map removed] Solution: I forgot to initialize the global I was setting, so something wierd happend |
| 07-09-2009, 11:28 PM | #2 |
Seriously? Initialize variables before you use them. |
| 07-10-2009, 09:23 AM | #3 |
Ok I'll try that Edit: That worked just fine, wasn't expecting that. I removed the code now (don't want anyone stealing now would I?), thank you so much. |
| 07-10-2009, 01:50 PM | #4 |
Cheezeman yes yes everyone whant to steal your code (you damn good jass coder and this code is divine for sure, this error is sooooooo hard to find and debug, but YOU DID IT!!!!) |
