Skip to content

Commit

Permalink
Make sure the Pueblo_Send power exists before we try and rename it to…
Browse files Browse the repository at this point in the history
… Send_OOB.
  • Loading branch information
talvo committed Oct 15, 2016
1 parent 0cb8364 commit 24dcbb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flags.c
Expand Up @@ -1037,6 +1037,7 @@ flag_add_additional(FLAGSPACE *n)
/* ... but make sure "Can_nspemit" remains as an alias */
flag_add(flags, "Can_nspemit", f);
}
add_power("Pueblo_Send", '\0', NOTYPE, F_WIZARD | F_LOG, F_ANY);
if ((f = match_power("Pueblo_Send")) && !match_power("Send_OOB")) {
/* The "Pueblo_Send" power was renamed "XXX"... */
mush_free((void *) f->name, "flag.name");
Expand All @@ -1047,7 +1048,6 @@ flag_add_additional(FLAGSPACE *n)
flag_add(flags, "Pueblo_Send", f);
}
add_power("Debit", '\0', NOTYPE, F_WIZARD | F_LOG, F_ANY);
add_power("Pueblo_Send", '\0', NOTYPE, F_WIZARD | F_LOG, F_ANY);
add_power("Many_Attribs", '\0', NOTYPE, F_WIZARD | F_LOG, F_ANY);
add_power("hook", '\0', NOTYPE, F_WIZARD | F_LOG, F_ANY);
add_power("Can_dark", '\0', TYPE_PLAYER, F_WIZARD | F_LOG, F_ANY);
Expand Down

0 comments on commit 24dcbb7

Please sign in to comment.