From 38128f73461135ff069aaf47788c785983dcac78 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 17 Dec 2015 17:59:46 -0300 Subject: [PATCH] Fix bug reading (int/bool) parameters that aren't specified in Params This fix a crash using ModifySelectionCommand commands. --- src/app/commands/params.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/commands/params.h b/src/app/commands/params.h index 95eb71733..4b75549ac 100644 --- a/src/app/commands/params.h +++ b/src/app/commands/params.h @@ -61,7 +61,7 @@ namespace app { template const T get_as(const char* name) const { std::istringstream stream(m_params[name]); - T value; + T value = T(); stream >> value; return value; }