Skip to content

Commit

Permalink
Update textDisplay.lua
Browse files Browse the repository at this point in the history
Correct reference from nonexistent 'chars' member to '_chars'

fixes #57
  • Loading branch information
paulofmandown committed Apr 5, 2018
1 parent 8a7fa1d commit 9b89af6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rot/textDisplay.lua
Expand Up @@ -107,7 +107,7 @@ function TextDisplay:getDefaultForegroundColor() return self.defaultForegroundCo
-- @tparam int y The y-position of the character
-- @treturn string The character
function TextDisplay:getCharacter(x, y)
local c=self.chars[x][y]
local c=self._chars[x][y]
return c and string.char(c) or nil
end
--- Get a background color.
Expand Down

0 comments on commit 9b89af6

Please sign in to comment.