On Mon, 30 Sep 2002, Mathew Earle Reuther wrote:
> Sep 30 16:08:07 :: SYSERR: dg_read_trigger: Trigger vnum #3054 asked for
> but non-existant! (room:-1)
Sorry for the self-reply, but I figured I'd just put this one in the
archives. The problem stemmed from the fact that my real_trigger was
misbehaving. :) I had made a "suggested" fix to it after there was some
discussion on the list regarding it. The suggested fix which I chose to
incorporate was causing the problem, so I ended up utilizing a different
fix which had also been suggested.
The section in question appears like so:
if (trig_index[mid]->vnum == vnum)
return (mid);
if (bot >= top)
return (NOTHING);
if (trig_index[mid]->vnum > vnum)
top = mid - 1;
The problematic fix was this one:
+ if (bot >= top)
+ return (NOTHING);
if (trig_index[mid]->vnum == vnum)
return (mid);
- if (bot >= top)
- return (NOTHING);
if (trig_index[mid]->vnum > vnum)
top = mid - 1;
The working fix is this one:
+ if (top == top_of_trigt && bot == top_of_trigt)
+ return(NOTHING);
if (trig_index[mid]->vnum == vnum)
return (mid);
if (bot >= top)
return (NOTHING);
if (trig_index[mid]->vnum > vnum)
top = mid - 1;
Hopefully this will help someone out. :)
-Mathew
--
+---------------------------------------------------------------+
| FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
| Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
| Newbie List: http://groups.yahoo.com/group/circle-newbies/ |
+---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT