Skip to content

Commit

Permalink
Fixed bug: plugin crashed if empty string was inputted as object's na…
Browse files Browse the repository at this point in the history
…me in call_it
  • Loading branch information
katono committed Sep 15, 2014
1 parent 833742f commit 96a17e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/rogue/pack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ function g.call_it()
local buf
if g.JAPAN then
buf = g.get_input_line(g.mesg[111], "", id_table[obj.which_kind].title, false, true)
if string.byte(' ') <= buf:byte(1) and buf:byte(1) <= string.byte('~') then
if buf ~= '' and string.byte(' ') <= buf:byte(1) and buf:byte(1) <= string.byte('~') then
buf = buf .. ' '
end
else
Expand Down

0 comments on commit 96a17e2

Please sign in to comment.