drfreeze123 / amxx-plugin-galileo

Automatically exported from code.google.com/p/amxx-plugin-galileo
0 stars 0 forks source link

'index out of bounds' error if gal_ban_recent is > 16 #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set gal_ban_recent > 16
2. restart server
3. profit

What is the expected output? What do you see instead?
Nothing should happen. Instead, receive the following error:

2010 - 15:31:27: [AMXX] Run time error 4: index out of bounds 
L 07/29/2010 - 15:31:27: [AMXX]    [0] galileo.sma::map_writeRecentList (line 
506)
L 07/29/2010 - 15:31:27: [AMXX]    [1] galileo.sma::plugin_cfg (line 270)

Please use labels and text to provide additional information.

Original issue reported on code.google.com by jones.p....@gmail.com on 19 Dec 2010 at 7:45

GoogleCodeExporter commented 9 years ago
MAX_RECENT_MAP_CNT is set to 16. Galileo is assuming the CVAR won't be set 
higher. Probably should cap the value to the lower of MAX_RECENT_MAP_CNT or 
"gal_banrecent" as is done with some of the other CVARs.

Original comment by jones.p....@gmail.com on 19 Dec 2010 at 8:07

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r92.

Original comment by jones.p....@gmail.com on 24 Dec 2010 at 3:27