Re: [Circle] [Code] Help with a minor bug

From: Rasmus 'Con' Ronlev (raro94ab@hp4.econ.cbs.dk)
Date: 11/04/96


On Mon, 4 Nov 1996, Eric de Groot wrote:

>    I was wondering if any of you people could take a look at this lil piece
> number2 = GET_EXP(ch) - (titles[(int) GET_CLASS(ch)][GET_LEVEL(ch)].exp);
                                                       ^^^(int) added

That should fix the array subscript is char thingie..
The level identifier is a signed char tye in std. circlemud dist.

Regards,
Con.

d.
--
     Rasmus Rønlev DOEK'94      WWW: http://www.econ.cbs.dk/people/raro94ab
     Student instructor         MUD: exiled.mud.circlemud.org 5000
                                         199.199.16.100 5000
       Student, B.Sc in Computer Science and Business Administration.

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST