Skip to content

Commit ad6fe50

Browse files
committed
Fixed crash if you did Debug 'option_info'
1 parent c9789b3 commit ad6fe50

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

world_debug.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -596,15 +596,15 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
596596
}
597597

598598
if (OptionsTable [i].iFlags & OPT_CUSTOM_COLOUR)
599-
strNote = "Custom colour";
599+
strNote = ", Custom colour";
600600
else
601601
if (OptionsTable [i].iFlags & OPT_RGB_COLOUR)
602-
strNote = "RGB colour";
602+
strNote = ", RGB colour";
603603
else
604604
strNote.Empty ();
605605

606-
Note (CFormat ("%s, %s, %s, %i, %s", // name, type, range, default, note
607-
(LPCTSTR) OptionsTable [i].pName,
606+
Note (CFormat ("%s, %s, %s, %0.0f%s", // name, type, range, default, note
607+
OptionsTable [i].pName,
608608
(LPCTSTR) strType,
609609
(LPCTSTR) strRange,
610610
OptionsTable [i].iDefault,

0 commit comments

Comments
 (0)