thebigsleepjoe / TTT-Bots-2

Player bots for Garry's Mod TTT
Creative Commons Attribution Share Alike 4.0 International
11 stars 4 forks source link

[BUG] breaking entity on map causes error #32

Closed EntranceJew closed 10 months ago

EntranceJew commented 10 months ago

Game version/server type

Describe the bug

Breaking a map entity causes errors.

Stack trace/error

The error, if any. Example:

[TTT Bots 2.0] lua/tttbots2/components/sv_memory.lua:537: Tried to use a NULL entity!
  1. GetOwner - [C]:-1
   2. fn - lua/tttbots2/components/sv_memory.lua:537
    3. unknown - lua/ulib/shared/hook.lua:109

⚠️ If there is no error, please ensure you remove the triple backticks, or else your formatting will break.

Reproducing the bug

Steps to reproduce the behavior:

  1. Go to ttt_batonrouge
  2. Find a radio that is playing music.
  3. Break it.
  4. See error

Expected behavior

Breaking radios works normally.

thebigsleepjoe commented 10 months ago

This should be fixed as of v1.11-roles. I'll release it as a hotfix for the workshop ASAP as well.