Partly-Adequate / partly-adequate-mapvote

An addon for gmod which adds a comfortable way for voting on maps
https://steamcommunity.com/sharedfiles/filedetails/?id=2706252150
MIT License
7 stars 3 forks source link

Using the search function with Dark Votescreen will cause lua errors #17

Closed The1337Gh0st closed 2 years ago

The1337Gh0st commented 2 years ago

Description Upon using the search function included with the Dark Votescreen, it will cause lua errors.

How to reproduce Using the search function to search for the name of a map will cause lua errors.

Behaviour It causes lua errors to appear in console.

Expected Behaviour There should not be a lua error.

Additional Information I am using PAM version 2.

My settings are: prefixes gm,ttt limit 25 cooldown 3 enabled true

The error is:

[ERROR] lua/pam/client/extensions/dark_votescreen_panel.lua:400: attempt to index field 'winning_option' (a nil value)
  1. RefreshOptionList - lua/pam/client/extensions/dark_votescreen_panel.lua:400
   2. OnChange - lua/pam/client/extensions/dark_votescreen_panel.lua:146
    3. unknown - lua/vgui/dtextentry.lua:206 (x8)
Reispfannenfresser commented 2 years ago

Thanks for the report.

This was a bug in pam-dark-votescreen It should be fixed now 👍🏻