1
0
Fork 0
mirror of https://github.com/Oreolek/raconteur.git synced 2024-05-02 08:59:21 +03:00

Fix bug with writers not writing when .options isn't present

This commit is contained in:
Bruno Dias 2015-04-13 18:53:04 -03:00
parent 23141e3b13
commit 4f41743da4

View file

@ -191,7 +191,7 @@ RaconteurSituation.prototype.act = function (character, system, action) {
if (self.writers[ref] === undefined) {
throw new Error("Tried to call undefined writer:" + ref);
}
if ($('.options')) {
if ($('.options').length) {
system.writeBefore(
markdown.render(
self.writers[ref].fcall(self, character, system, action))