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:
parent
23141e3b13
commit
4f41743da4
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue