Description
I'm trying to use the player instance as the key inside a table, but when the player leaves the server the player instance isn't pointing to the same thing it was previously pointing in the table.
Reproducible
Always
What you were doing when the bug happened
N/A
What you think caused the bug
I'm not sure if this is a feature of the module and not a bug. If this is not expected behavior then I'll look for a bug.
Code that can reproduce the issue that I'm having:
local t_Players = {}
function onPlayerJoin(i_player)
{
t_Players[i_player] <- null;
print("OnJoin slot search result: " + t_Players.rawin(i_player).tostring());
}
function onPlayerPart(i_player, reason)
{
print("OnPart slot search result: " + t_Players.rawin(i_player).tostring());
}
Screenshot of the console output: