liquids: initialize range dimensions

develop
lethosor 2018-04-05 02:16:40 -04:00
parent e9457b9f65
commit 868c032578
2 changed files with 4 additions and 1 deletions

@ -36,6 +36,9 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
================================================================================
# Future
## Fixes
- `liquids`: fixed "range" command to default to 1 for dimensions consistently
================================================================================
# 0.44.09-r1

@ -271,7 +271,7 @@ command_result df_liquids (color_ostream &out_, vector <string> & parameters)
}
else if(command == "range" || command == "r")
{
int width, height, z_levels;
int width = 1, height = 1, z_levels = 1;
command_result res = parseRectangle(out, commands, 1, commands.size(),
width, height, z_levels);
if (res != CR_OK)