Facepunch / sbox-hc1

40 stars 6 forks source link

PlayAsyncSound error in ReloadWeaponComponent #187

Open CarsonKompon opened 1 month ago

CarsonKompon commented 1 month ago
[Generic] Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Facepunch.ReloadWeaponComponent.PlayAsyncSound(Single delay, SoundEvent snd, Func`1 playCondition) in Weapons/Components/ReloadWeaponComponent.cs:line 181
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at Sandbox.Tasks.ExpirableSynchronizationContext.ProcessQueue() in C:\build\_work\sbox\sbox\engine\Sandbox.Engine\Threads\ExpirableSynchronizationContext.cs:line 454