mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-23 18:50:13 +01:00
Fixed variable definition halfway through do_oasis_zedit to allow compilation in MSVC. (thanks Lyceq)
This commit is contained in:
parent
bed412f47e
commit
7ac7eca7ac
2 changed files with 3 additions and 2 deletions
|
|
@ -43,6 +43,7 @@ ACMD(do_oasis_zedit)
|
|||
char sbot[MAX_STRING_LENGTH];
|
||||
char buf1[MAX_STRING_LENGTH];
|
||||
char buf2[MAX_STRING_LENGTH];
|
||||
room_vnum bottom, top;
|
||||
|
||||
/* No building as a mob or while being forced. */
|
||||
if (IS_NPC(ch) || !ch->desc || STATE(ch->desc) != CON_PLAYING)
|
||||
|
|
@ -82,8 +83,6 @@ ACMD(do_oasis_zedit)
|
|||
send_to_char(ch, "Zones cannot contain negative vnums.\r\n");
|
||||
return;
|
||||
}
|
||||
room_vnum bottom, top;
|
||||
|
||||
number = atoidx(buf2);
|
||||
if (number < 0)
|
||||
number = NOWHERE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue