Author Topic: List index out of bounds  (Read 1436 times)

0 Members and 1 Guest are viewing this topic.

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
List index out of bounds
« on: April 21, 2007, 02:52:40 pm »
I get the errormessage "List index out of bounds" when executing this:

Code: [Select]
type     tattribute = record
                                 base,modify,modlvl,minmax: integer;
                               end;

var  warmth:array[1..3] of tattribute;

.
.
.

warmth[1].base  :=strtoint(ReadINI(config,'HEAL_WARMTH','Healed_Base','20'));


why? -.-
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host

Offline mxyzptlk

  • Veteran
  • *****
  • Posts: 1493
  • The Panda Ninja
Re: List index out of bounds
« Reply #1 on: April 21, 2007, 02:59:23 pm »
The only time I get "list index out of bounds" is when I start a game without a map list and play it until the map needs to change.
Check that.

Also, this should be in bugs/errrors

"While preceding your entrance with a grenade is a good tactic in
Quake, it can lead to problems if attempted at work." -- C Hacking

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
Re: List index out of bounds
« Reply #2 on: April 21, 2007, 03:45:53 pm »
that has absolutly nothing to do with the maplist, my friend ;)

Date Posted: April 21, 2007, 04:27:56 PM
problem solved, i had multiple 'Healed_Base' Keys in the INI, i thought that worked

EDIT: problem not solved... uber queer error :/
« Last Edit: April 21, 2007, 03:56:05 pm by Avarax »
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host