address compilation warnings from gcc

This commit is contained in:
cohrs
2002-02-03 07:15:26 +00:00
parent cb6a93641b
commit f057848eea
3 changed files with 5 additions and 4 deletions

View File

@@ -1349,8 +1349,8 @@ struct obj *otmp;
{
if (!otmp->oartifact)
return ((long)objects[otmp->otyp].oc_cost);
else if (artilist[otmp->oartifact].cost)
return (artilist[otmp->oartifact].cost);
else if (artilist[(int) otmp->oartifact].cost)
return (artilist[(int) otmp->oartifact].cost);
else
return (100L * (long)objects[otmp->otyp].oc_cost);
}