thebigsleepjoe / TTT-Bots-2

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

[BUG] breaking entity on map causes error #32

Closed EntranceJew closed 7 months ago

EntranceJew commented 7 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 7 months ago

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