C++'s "switch(var)" can only use int constants? How lame!!
I was trying to check item_type...
Code: Select all
switch(item_type)
{
case "Normal":
// stuff
break;
case "Armor":
// stuff
break;
case "Spell":
// stuff
break;
}I know I ran into this before, but forgot. So, just venting. Back to if/then/else blah...
I can do this in PHP gdi!!