waypoint.c
changeset 1820 9b6458526480
parent 1783 5ff88ba55601
child 1881 023a134a4b12
--- a/waypoint.c	Sun May 15 18:43:36 2005 +0000
+++ b/waypoint.c	Sun May 15 18:50:55 2005 +0000
@@ -302,8 +302,8 @@
 
 	if (!IsWaypointIndex(p1)) return CMD_ERROR;
 
-	if (_decode_parameters[0] != 0) {
-		str = AllocateNameUnique((const char*)_decode_parameters, 0);
+	if (_cmd_text[0] != '\0') {
+		str = AllocateNameUnique(_cmd_text, 0);
 		if (str == 0)
 			return CMD_ERROR;