On Thu, 4 Dec 1997, Aaron Miller wrote:
>>>  subscript has type 'char'
>>
>>If it's the right variable, cast it to an integer.
>Thanks for the help, but, huh? :) I am still rather a newbie to the coding
>world. This is stock, so I figured it was something not setup right..
>(well, stock does this also - this has OasisOLC pre installed)
array[(int)GET_SOMETHING(ch))]
Basically it's because the variable is 'byte' or 'char' type so save memory
for small value variables.  The compiler then complains because it doesn't
think a character in the array is correct.  Since it is, you cast it to an
integer to tell the compiler that you really mean it.
--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard
     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST