From e8121ca3949b19003082544d37159bdda8be7684 Mon Sep 17 00:00:00 2001 From: olsner Date: Sun, 23 Jan 2005 12:54:14 +0000 Subject: [PATCH] Also allow access to the last player ;-) This was SVN commit r1765. --- source/ps/Game.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ps/Game.h b/source/ps/Game.h index b18de1859c..0670e108eb 100755 --- a/source/ps/Game.h +++ b/source/ps/Game.h @@ -101,7 +101,7 @@ public: inline CPlayer *GetPlayer(uint idx) { - if (idx >= 0 && idx < m_NumPlayers) + if (idx >= 0 && idx <= m_NumPlayers) return m_Players[idx]; else {