Petr Mrázek 2012-03-30 23:34:51 +02:00
commit a4c41bf64c
1 changed files with 2 additions and 0 deletions

@ -146,6 +146,7 @@ command_result df_changeitem(color_ostream &out, vector <string> & parameters)
if(i == parameters.size()-1) if(i == parameters.size()-1)
{ {
out.printerr("no material specified!\n"); out.printerr("no material specified!\n");
return CR_WRONG_USAGE;
} }
change_material = true; change_material = true;
new_material = parameters[i+1]; new_material = parameters[i+1];
@ -157,6 +158,7 @@ command_result df_changeitem(color_ostream &out, vector <string> & parameters)
if(i == parameters.size()-1) if(i == parameters.size()-1)
{ {
out.printerr("no quality specified!\n"); out.printerr("no quality specified!\n");
return CR_WRONG_USAGE;
} }
string & q = parameters[i+1]; string & q = parameters[i+1];
// meh. should use a stringstream instead. but it's only 6 numbers // meh. should use a stringstream instead. but it's only 6 numbers