Page 1 of 1

(fixed) Problem with search_quiv_for_ammo

Posted: Sun Nov 18, 2007 11:18 pm
by Joramun
In methods.lua : function get_more_throwing_ammo :

LUA ERROR: Lua Function THROW: base/methods.lua:894: dsb_set_gfxflag requires int in param 1

It is calling for the ammo id, or in my case :
ammo = search_quiv_for_ammo(...)
where :
search_quiv_for_ammo returns false (since the quiver is empty) resulting in an error...

That's all ! :wink:

Posted: Sun Nov 18, 2007 11:42 pm
by Sophia
Oops.

Change line 893 (the one right above this error) of methods.lua from "else" to "elseif (ammo) then" and this should work.