From eac94793745a61429b52a4b489e148737d091749 Mon Sep 17 00:00:00 2001 From: cilix42 Date: Mon, 18 Aug 2008 00:44:23 +0000 Subject: [PATCH] Let acceptsNumClicks() distinguish between invalid LPE and valid ones that expect zero clicks --- src/live_effects/effect.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 4a71b2656..5dfd3fb20 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -110,6 +110,7 @@ const Util::EnumDataConverter LPETypeConverter(LPETypeData, sizeof(L int Effect::acceptsNumClicks(EffectType type) { switch (type) { + case INVALID_LPE: return -1; // in case we want to distinguish between invalid LPE and valid ones that expect zero clicks case ANGLE_BISECTOR: return 3; case CIRCLE_3PTS: return 3; case CIRCLE_WITH_RADIUS: return 2; -- 2.30.2