summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ddce098)
Doing this causes hard-to-understand crashes, so just bomb out at once.
Node *EffectChain::add_node(Effect *effect)
{
Node *EffectChain::add_node(Effect *effect)
{
+ for (unsigned i = 0; i < nodes.size(); ++i) {
+ assert(nodes[i]->effect != effect);
+ }
+
char effect_id[256];
sprintf(effect_id, "eff%u", (unsigned)nodes.size());
char effect_id[256];
sprintf(effect_id, "eff%u", (unsigned)nodes.size());