Heyo, I've been coding a custom nominate plugin and I've got a bug that's been bugging me out for the last 4-5 hours
Whenever a client creates the nominate menu, and then executes another command that creates a menu, the server crashes with the following signature:
https://crash.limetech.org/oghbtybndzte
The weird thing is that this doesn't happen on my local server, but It does on my public server, even when there are no players online.
Example of reproducing bug:
Player executes sm_nominate
Player doesn't close the menu, and executes sm_nominate again
Another example
Player executes sm_nominate
Player uses /admin command.
Code in which I create the menu (Althought I doubt it has to do with this)
Code:
public void PickFiltersMenu(int client) {
Menu menu = new Menu(PickFilterMenuHandler);
menu.AddItem("tier", "Tiers");
menu.AddItem("alpha", "Alphabetically");
menu.AddItem("status", "Completition Status");
menu.AddItem("stage", "Stage Type");
menu.ExitButton = true;
//PLUGIN CRASHES ON MENU.DISPLAY, DOESN'T PASS THIS LINE. Doesn't reach handler either.
menu.Display(client, MENU_TIME_FOREVER);
}
Thanks a lot, any help appreciated.
Both servers are running latest sm version.