MoreOutput / RockMUD

Node Websocket MUD Server. Demo: https://rockmud.herokuapp.com/
MIT License
157 stars 43 forks source link

Running the command drink with no arg causes a crash. #134

Closed UnbanTwin closed 7 years ago

UnbanTwin commented 7 years ago

We removed the line that seemed to cause the crash (It did not seem to do anything) it works now!

MoreOutput commented 7 years ago

this was a regression; will check into this fix soon. The idea of the removed line is to account for fountains -- which would be room level.

MoreOutput commented 7 years ago

Appears this is programming error -- just looking at source. The getWatersource function has an arity of 2 -- it needs to be given the command object. Sorry about that.

Room.getWatersource(roomObj, command);