Re: Duping Bugfix

From: Chuck Reed (creed@I-55.COM)
Date: 01/16/98


>It already checks for a NULL name so I don't see why that helps, and you're
>not doing a str_cmp there either!

Well, that line was crashing my game, and when I did that check to see if
something was there, it worked.  Is there a way to use a strcmp within this
statement?

if(!GET_NAME(dt->character) && strcmp(GET_NAME(dt->character, newname)))
    return blah;

It crashes cuase it tries to find the name that it just said wasn't there.
Is there a better way?

Chuck


     +------------------------------------------------------------+
     | 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/15/00 PST