diff options
Diffstat (limited to '')
-rw-r--r-- | source/CraftingRecipes.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/CraftingRecipes.cpp b/source/CraftingRecipes.cpp index b47db7e5b..13a8ac1e0 100644 --- a/source/CraftingRecipes.cpp +++ b/source/CraftingRecipes.cpp @@ -583,10 +583,10 @@ cCraftingRecipes::cRecipe * cCraftingRecipes::FindRecipe(const cItem * a_Craftin { if (!a_CraftingGrid[x + y * a_GridWidth].IsEmpty()) { - GridRight = MAX(x, GridRight); - GridBottom = MAX(y, GridBottom); - GridLeft = MIN(x, GridLeft); - GridTop = MIN(y, GridTop); + GridRight = std::max(x, GridRight); + GridBottom = std::max(y, GridBottom); + GridLeft = std::min(x, GridLeft); + GridTop = std::min(y, GridTop); } } int GridWidth = GridRight - GridLeft + 1; |