mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-17 13:20:45 +00:00
Fix bug reading (int/bool) parameters that aren't specified in Params
This fix a crash using ModifySelectionCommand commands.
This commit is contained in:
parent
7f8cbfd250
commit
38128f7346
@ -61,7 +61,7 @@ namespace app {
|
||||
template<typename T>
|
||||
const T get_as(const char* name) const {
|
||||
std::istringstream stream(m_params[name]);
|
||||
T value;
|
||||
T value = T();
|
||||
stream >> value;
|
||||
return value;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user