The filter null|mob adds an additional entry to the list of choice, when there is only a single list entry, but only when there is a following second parameter expected.
Numbered Steps to Reproduce Problem:
- Create a list with a single entry
- Create a verb that expects two parameters, one of which is filtered with mob|null and chooses from the list
Code Snippet (if applicable) to Reproduce Problem:
var/list/players = list()
mob
Login()
..()
players += src
Logout()
players -= src
verb
Test1(var/mob/target as null|mob in players, var/message as null|text)
// An additional "" is added to the list when choosing
Test2(var/mob/target as null|mob in players)
// The additional "" is no longer present
Expected Results:
null|mob to yield the same result, regardless on the amount of parameter a verb expects.
Actual Results:
null|mob adds an "" to the list of choice.
The problem occurs
Every time
In other user accounts - Tested by Evanx
On other computers - Tested by Evanx
When does the problem NOT occur?
The problem does not occur when there is only a single parameter in the verb, or when there are multiple entries in the list.
Workarounds:
None.