Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array index out-of-bounds in TF2Items_OnGiveNamedItem #29

Open
HotoCocoaco opened this issue Aug 24, 2024 · 1 comment
Open

Array index out-of-bounds in TF2Items_OnGiveNamedItem #29

HotoCocoaco opened this issue Aug 24, 2024 · 1 comment

Comments

@HotoCocoaco
Copy link

Describe the bug
Array index out-of-bounds

L 08/24/2024 - 17:26:01: [SM] Exception reported: Array index out-of-bounds (index 9, limit 9)
L 08/24/2024 - 17:26:01: [SM] Blaming: tf2itemplugin_cosmetics.smx
L 08/24/2024 - 17:26:01: [SM] Call stack trace:
L 08/24/2024 - 17:26:01: [SM]   [1] Line 812, tf2itemplugin\tf2itemplugin_cosmetics_base.sp::TF2Items_OnGiveNamedItem
L 08/24/2024 - 17:26:01: [SM]   [3] TF2_RegeneratePlayer
L 08/24/2024 - 17:26:01: [SM]   [4] Line 2418, addons/sourcemod/scripting/mge.sp::ResetPlayer
L 08/24/2024 - 17:26:01: [SM]   [5] Line 4946, addons/sourcemod/scripting/mge.sp::Timer_ResetPlayer

To Reproduce
Steps to reproduce the behavior:

  1. Install this plugin on mge server.
  2. Respawn & /add
  3. Error pop up in error log.

MAX_CLASSES = 9

enum TFClassType
{
	TFClass_Unknown = 0,
	TFClass_Scout,
	TFClass_Sniper,
	TFClass_Soldier,
	TFClass_DemoMan,
	TFClass_Medic,
	TFClass_Heavy,
	TFClass_Pyro,
	TFClass_Spy,
	TFClass_Engineer
};
Repository owner deleted a comment from masooddahmedd Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@HotoCocoaco and others