mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-24 03:00:13 +01:00
Cleaned up numerous warnings found by adding -Wextra -Wcast-qual -Wshadow -Wno-unused flags. --Rumble
This commit is contained in:
parent
e8c87e82e4
commit
4f1403558a
28 changed files with 186 additions and 187 deletions
|
|
@ -169,8 +169,8 @@ void do_dg_affect(void *go, struct script_data *sc, trig_data *trig,
|
|||
half_chop(cmd, value_p, duration_p);
|
||||
|
||||
/* make sure all parameters are present */
|
||||
if (!charname || !*charname || !property || !*property ||
|
||||
!value_p || !*value_p || !duration_p || !*duration_p) {
|
||||
if (charname == NULL || !*charname || property == NULL || !*property ||
|
||||
value_p == NULL || !*value_p || duration_p == NULL || !*duration_p) {
|
||||
script_log("Trigger: %s, VNum %d. dg_affect usage: <target> <property> <value> <duration>",
|
||||
GET_TRIG_NAME(trig), GET_TRIG_VNUM(trig));
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue