Fixed reference to nil value (self.player to ply)
Merge pull request #658 from Th13teen/master

E2: Fixed accidental reference to nil value