mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #03469
[Bug 1261536] Re: getExitStubs() returns the room ID instead of nil when there are no stubs
There does seem to be an error in all versions of the
TLuaInterpreter::getExitStubs(...) method, Chris's commit on 2013-04-09
03:22:11 {63395a6c50f948a92a71df0e712b2476402792f1} does a small change
in this area but does not address the fault that was present right back
to the introduction. The attached patch will cure the problem.
Note that this is one of the table returning functions that has the
issue of indexes starting at 0 rather than the LUA standard of 1!
** Patch added: "getExitStubs.patch"
https://bugs.launchpad.net/mudlet/+bug/1261536/+attachment/3930655/+files/getExitStubs.patch
** Changed in: mudlet
Status: New => Confirmed
** Changed in: mudlet
Importance: Undecided => High
--
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/1261536
Title:
getExitStubs() returns the room ID instead of nil when there are no
stubs
Status in Mudlet the MUD client:
Confirmed
Bug description:
getExitStubs() returns the room ID instead of nil when there are no
stubs . See
http://forums.mudlet.org/viewtopic.php?f=7&t=4272&p=19841#p19840. This
is just non-sensical and makes it difficult to work with as the code
that this design forces isn't obvious (why would someone be checking
for a number and not just nil for the lack of stubs?)
To manage notifications about this bug go to:
https://bugs.launchpad.net/mudlet/+bug/1261536/+subscriptions
Follow ups
References