Skip to content
This repository has been archived by the owner on Oct 8, 2022. It is now read-only.

Commit

Permalink
fix bug when coloring tile outside where x or y is less than 0
Browse files Browse the repository at this point in the history
  • Loading branch information
vladdeSV committed Feb 22, 2019
1 parent f04e55c commit 01a9bb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/scone/window.d
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ struct Window
// If only colors were provided, just update the colors
if(!outputCells.length)
{
if(y < 0 || x < 0)
{
return;
}

if(foreground.isActualColor)
{
cells[y][x].foreground = foreground;
Expand Down

0 comments on commit 01a9bb7

Please sign in to comment.