mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-14 20:08:06 +01:00
Prevent compiler warnings and potential OLC setting string truncation.
- Prevented compiler warnings when using ’-Wtautological-pointer-compare’ on development system (Darwin) - Prevented possible string truncation when adding a newline to an OLC setting string.
This commit is contained in:
parent
5dc6eae4c5
commit
68fcdb73bf
9 changed files with 18 additions and 19 deletions
|
|
@ -483,7 +483,7 @@ WCMD(do_wload)
|
|||
two_arguments(target, arg1, arg2); /* recycling ... */
|
||||
tch = get_char_in_room(room, arg1);
|
||||
if (tch) {
|
||||
if (arg2 != NULL && *arg2 && (pos = find_eq_pos_script(arg2)) >= 0 &&
|
||||
if (*arg2 && (pos = find_eq_pos_script(arg2)) >= 0 &&
|
||||
!GET_EQ(tch, pos) && can_wear_on_pos(object, pos)) {
|
||||
equip_char(tch, object, pos);
|
||||
load_otrigger(object);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue