menof36go / ttt2-utility

Provides some useful functions including a simplified convar setup and a reworked explosion system
0 stars 0 forks source link

Fix for console error #1

Closed mexikoedi closed 4 years ago

mexikoedi commented 4 years ago

Fix for this error: [[TTT/2] Utility Plugin] lua/scripts/sh_addonutil.lua:22: bad argument #1 to 'pairs' (table expected, got nil)

  1. pairs - [C]:-1
  2. GetMapFiles - lua/scripts/sh_addonutil.lua:22
  3. GetMapFiles - lua/scripts/sh_addonutil.lua:23
  4. GetMapFiles - lua/scripts/sh_addonutil.lua:23
  5. GetMapFiles - lua/scripts/sh_addonutil.lua:23
  6. SetupAddons - lua/scripts/sh_addonutil.lua:81
  7. unknown - lua/autorun/sh_utility_init.lua:9
mexikoedi commented 4 years ago

Thanks for the info. Now i know more about guard statements. I edited it and tested it.

AaronMcKenney commented 3 years ago

Hey menof36go, can this be released onto Steam? I'm seeing the error mentioned here with the new TTT2 update.

mexikoedi commented 3 years ago

Hey menof36go, can this be released onto Steam? I'm seeing the error mentioned here with the new TTT2 update.

Now it is fixed on Steam too.