object formatting fix for charged rings

The bounds checking code for object formatting had a typo that left
out the space between +N and <ring of type>.
This commit is contained in:
PatR
2024-01-21 07:58:25 -08:00
parent 8f35e33a2e
commit 1a2b2a8cae

View File

@@ -1442,7 +1442,7 @@ doname_base(
if (obj->owornmask & W_RING) /* either left or right */
ConcatF1(bp, 0,"%s)", body_part(HAND));
if (known && objects[obj->otyp].oc_charged) {
Sprintf(prefix, "%+d", obj->spe); /* sitoa(obj->spe)+" " */
Sprintf(prefix, "%+d ", obj->spe); /* sitoa(obj->spe)+" " */
}
break;
case FOOD_CLASS: