2.1.17 broke my touchspecial hook

Status
Not open for further replies.

pastel

‫‬‭‮‪‫‬‭‮
see attachment for error, the line in questions that errors is:
Code:
addHook("TouchSpecial", AmyJump, i)
this worked fine in 2.1.16
 

Attachments

  • srb20000.png
    srb20000.png
    4.1 KB · Views: 380
Last edited by a moderator:
By any chance does the script use "for i = 0,#mobjinfo"? If so, #mobjinfo should be #mobjinfo-1 instead, and this is really a fault on the part of the script.
 
No worries, this is probably useful info for other modders who made the same error: since 2.1.17 addHook now has error checking with regards valid mobj type indexes just as with mobjinfo[], and #mobjinfo isn't a valid mobj type number as you probably should be aware.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top