View Single Post
Old October 24, 2012, 18:04   #3
Therem Harth
Therem Harth's Avatar
Join Date: Jan 2008
Location: New England winter
Posts: 897
Therem Harth is on a distinguished road

Looking at the stack traceback, BTW, it looks to me like cast_school_spell() is being invoked even when you hit the escape key - and thus invoked on a spell that doesn't exist, producing the error. Not sure why; escape is supposed to produce a value of -1, which should be caught by an if statement and cause cast_school_spell not to be invoked:

		s = get_school_spell("cast", "is_ok_spell", 63)
		if (s ~= -1) then
			cast_school_spell(s, spell(s))
Maybe there is some kind of type mismatch on 64-bit, that's preventing the value from being properly recognized?
Therem Harth is offline   Reply With Quote