Navigation Menu

Skip to content

Commit

Permalink
Fixed crash if you did Debug 'option_info'
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Jul 29, 2010
1 parent c9789b3 commit ad6fe50
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions world_debug.cpp
Expand Up @@ -596,15 +596,15 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
}

if (OptionsTable [i].iFlags & OPT_CUSTOM_COLOUR)
strNote = "Custom colour";
strNote = ", Custom colour";
else
if (OptionsTable [i].iFlags & OPT_RGB_COLOUR)
strNote = "RGB colour";
strNote = ", RGB colour";
else
strNote.Empty ();

Note (CFormat ("%s, %s, %s, %i, %s", // name, type, range, default, note
(LPCTSTR) OptionsTable [i].pName,
Note (CFormat ("%s, %s, %s, %0.0f%s", // name, type, range, default, note
OptionsTable [i].pName,
(LPCTSTR) strType,
(LPCTSTR) strRange,
OptionsTable [i].iDefault,
Expand Down

0 comments on commit ad6fe50

Please sign in to comment.