Re: OK, new Olc problem. hehe

From: George Greer (greerga@circlemud.org)
Date: 05/13/99


On Thu, 13 May 1999, Fionn Colvin wrote:

>However, I do have a problem, if I try to create a new objext, when I
>press Q and it asks if I want to save it internally I press Y and enter.
>The mud then crashes. Editing and saving existing objext works fine.
>I've checked all the patch files and my oedit.c/oedit.h and genobj.c
>files and can't find anything I've missed with the patch. Any help would
>be greatly appreciated.

Wow, that's embarrassing.

--- OasisOLCv2.0-pre5/genobj.c  Sat Apr 24 13:42:51 1999
+++ OasisOLCv2.0-pre6/genobj.c  Thu May 13 18:37:31 1999
@@ -84,7 +84,7 @@
   /*
    * Start counting through both tables.
    */
-  for (i = top_of_objt; i > 0; i++) {
+  for (i = top_of_objt; i > 0; i--) {
     /*
      * Check if current virtual is bigger than our virtual number.
      */

-lefence found it in under 2 minutes (and 180 MB of memory).

--
George Greer            | Sammy's Code - OBuild
greerga@circlemud.org   | http://www.ticnet.com/samedi/code.html


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



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