? sprintf("%d", total)
: sprintf("%d (%d)", total, potential)
), s);
+ if (this.text) strunzone(this.text);
this.text = strzone(s);
}
}
DESTRUCTOR(DamageText) {
- strunzone(this.text);
+ if (this.text) strunzone(this.text);
}
ENDCLASS(DamageText)
#endif