Bug Fix: sedit, copy shop option causing a crash (Thanks slicer)

This commit is contained in:
JamDog 2009-05-24 17:24:17 +00:00
parent 1786aa135d
commit 7480df9d35
2 changed files with 3 additions and 1 deletions

View file

@ -34,6 +34,8 @@ OLC copy and delete options.
export (QQ's a zone into a tarball)
Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist)
(lots of major bugfixes too)
[May 24 2009] - Jamdog
Bug-Fix: sedit, copy shop option was causing a crash (Thanks slicer)
[May 21 2009] - Jamdog
Added autoassist, autoloot, autogold, autosplit, autosacrifice and automap commands.
Added autodoor toggle and command (autofind next door when opening/closing/unlocking/picking)

View file

@ -763,7 +763,7 @@ void sedit_parse(struct descriptor_data *d, char *arg)
}
break;
case SEDIT_COPY:
if ((i = real_room(atoi(arg))) != NOWHERE) {
if ((i = real_shop(atoi(arg))) != NOWHERE) {
sedit_setup_existing(d, i);
} else
write_to_output(d, "That shop does not exist.\r\n");