Quote:
Originally Posted by Dores
By the way, you have a mistake:
Code:
case 'h': nade = NADE_HE;
case 'f': nade = NADE_FL;
case 's': nade = NADE_SM;
--->
case 'h': nade = g_nade_ids[NADE_HE];
case 'f': nade = g_nade_ids[NADE_FL];
case 's': nade = g_nade_ids[NADE_SM];
|
Make sure that you retrieve the classname (g_nade_weaponnames) in the same switch statement if you are assigning "nade" the CSW_* id, instead of the enum id.
__________________