HomeWildfire Games

Fix out of range access in CInput, patch by vladislavbelov. Fixes #4570.

Description

Fix out of range access in CInput, patch by vladislavbelov. Fixes #4570.

Some invalid cursor positions were not checked, resulting in a crash in Debug mode. This was revealed by r19234, refs #4401.

Reviewed By: echotangoecho, Itms

Differential Revision: https://code.wildfiregames.com/D484