mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-21 16:36:09 +01:00
[Nov 23 2008] - Rumble
Fixed a memory leak in quest.c create_obj. (thanks Jamdog) [Oct 21 2008] - Rumble Fixed display of wear locations and a typo. (thanks Kyle)
This commit is contained in:
parent
6c963b8187
commit
a7e4693eb6
3 changed files with 15 additions and 9 deletions
|
|
@ -306,13 +306,11 @@ void generic_complete_quest(struct char_data *ch)
|
|||
QST_EXP(rnum));
|
||||
}
|
||||
if (QST_OBJ(rnum) && QST_OBJ(rnum) != NOTHING) {
|
||||
if (real_object(QST_OBJ(rnum)) != NOTHING) {
|
||||
if ((new_obj = create_obj()) != NULL) {
|
||||
if ((new_obj = read_object((QST_OBJ(rnum)),VIRTUAL)) != NULL) {
|
||||
if (real_object(QST_OBJ(rnum))) {
|
||||
if ((new_obj = read_object((QST_OBJ(rnum)),VIRTUAL)) != NULL) {
|
||||
obj_to_char(new_obj, ch);
|
||||
send_to_char(ch, "You have been presented with %s%s for your service.\r\n",
|
||||
GET_OBJ_SHORT(new_obj), CCNRM(ch, C_NRM));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue