morerokk / IreNFist

A continuation/fix of the IreNFist mod for PAYDAY 2
MIT License
4 stars 2 forks source link

Shockproof Aced skill crash with poison bolts #46

Closed ghost closed 3 years ago

ghost commented 3 years ago

Title.

Here's the log: Application has crashed: C++ exception [string "core/lib/utils/corecode.lua"]:100: attempt to index local 'obj' (a number value)

SCRIPT STACK

add_damage_result() lib/units/weapons/bowweaponbase.lua:259 damage_tase() lib/units/enemies/cop/copdamage.lua:1671 give_impact_damage() @mods/IRE AND FIST REBORN/lua/raycast.lua:965 on_collision() lib/units/weapons/raycastweaponbase.lua:2137 on_collision() lib/units/weapons/raycastweaponbase.lua:2801 _on_collision() lib/units/weapons/projectiles/arrowbase.lua:76 clbk_impact() lib/units/weapons/projectiles/projectilebase.lua:256 func() lib/units/weapons/projectiles/arrowbase.lua:95 body_collision_callback() core/lib/units/coreunitdamage.lua:1537 lib/units/unitdamage.lua:92


Callstack:

     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     zip_get_name                                        
                     ntdll  (???)     RtlAllocateHeap                                     
ghost commented 3 years ago

I shot a Taser while being tased, then the game crashed. I reckon this is correlated with, "While being tased, your bullets will electrify enemies." I had a light crossbow with poison bolts.

I have a feeling this crash will (also) happen with other weapons that don't use bullets.

morerokk commented 3 years ago

That's rather interesting. Thanks for the report! I'll make sure to get it fixed for the next update.

morerokk commented 3 years ago

Fixed.