diff options
| author | Petr Mrázek | 2011-08-06 04:37:29 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-08-06 04:37:29 +0200 |
| commit | cb93b5542ec20a8660800f98f1b090af3623e100 (patch) | |
| tree | 58f268002b223493b5682f037deca7b11d878989 /plugins/tiletypes.cpp | |
| parent | 24bdc538e961e3d353e3e865f4f1bd7f04738483 (diff) | |
| download | dfhack-cb93b5542ec20a8660800f98f1b090af3623e100.tar.gz dfhack-cb93b5542ec20a8660800f98f1b090af3623e100.tar.bz2 dfhack-cb93b5542ec20a8660800f98f1b090af3623e100.tar.xz | |
Fix problem with running interactive commands from hotkeys.
Diffstat (limited to 'plugins/tiletypes.cpp')
| -rw-r--r-- | plugins/tiletypes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/tiletypes.cpp b/plugins/tiletypes.cpp index 7b031f34..43607958 100644 --- a/plugins/tiletypes.cpp +++ b/plugins/tiletypes.cpp @@ -124,7 +124,7 @@ bool processTileType(TileType &paint, const std::string &option, const std::stri if (option == "shape" || option == "sh" || option == "s") { - if (valInt >= -1 && valInt << DFHack::tileshape_count) + if (valInt >= -1 && valInt < DFHack::tileshape_count) { paint.shape = (DFHack::TileShape) valInt; found = true; @@ -174,7 +174,7 @@ bool processTileType(TileType &paint, const std::string &option, const std::stri } else if (option == "special" || option == "sp") { - if (valInt >= -1 && valInt << DFHack::tilespecial_count) + if (valInt >= -1 && valInt < DFHack::tilespecial_count) { paint.special = (DFHack::TileSpecial) valInt; found = true; |
