* rooms.c: create_floor(): Fix the check for whether a floor name was given
authorMichael Hampton <io_error@uncensored.citadel.org>
Thu, 23 Sep 2004 00:22:18 +0000 (00:22 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Thu, 23 Sep 2004 00:22:18 +0000 (00:22 +0000)
citadel/ChangeLog
citadel/rooms.c

index f6658fffa5e23e244dc5288b84f94766aaf4553e..f9ec7032b6c244eadf73574f754bcd9434928992 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 625.29  2004/09/23 00:22:18  error
+ * rooms.c: create_floor(): Fix the check for whether a floor name was given
+
  Revision 625.28  2004/09/21 02:09:30  ajc
  * Tweaks to above
 
@@ -6103,3 +6106,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
+
index 3125a0874fe4849ad2a7efbbd08f8f959094f4ea..f1f90b64354d8d7c9d9a00251212b3c5c11789d8 100644 (file)
@@ -1217,7 +1217,7 @@ void create_floor(CtdlIPC *ipc)
        }
 
        newprompt("Name for new floor: ", newfloorname, 255);
-       if (!*newprompt) return;
+       if (!*newfloorname) return;
        r = CtdlIPCCreateFloor(ipc, 1, newfloorname, buf);
        if (r / 100 == 2) {
                scr_printf("Floor has been created.\n");