Skip to content

Commit 110cf24

Browse files
author
Arthur
committed
Bugfix
1 parent d8d3836 commit 110cf24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/controller/controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function Controller(options) {
116116
if (bonus[id] === undefined) {
117117
return false;
118118
}
119-
if ((by === undefined) || (by === null)) {
119+
if ((by === undefined) || (by === null) || (snakes[by] === undefined)) {
120120
if (typeof eaten_bonus_callback === "function") {
121121
eaten_bonus_callback.call(this, id, undefined);
122122
}

0 commit comments

Comments
 (0)