[-snip-] > Now, if i have the following code .. > if (!IS_NPC(victim) && GET_SPELL_BEING_MEMORISED(victim)) { > ... > } > > is that bad coding form? Like, the second argument above will CRASH for > my mobs (my mobs ALL have *ch->pc == NULL, not the stock method). > I could probably dig up hundreds of examples where nearly identical form is used in stock CircleMUD code. That would be the long way of saying it looks just fine to me. :D -Geoff -- +---------------------------------------------------------------+ | 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