PEGASUS: Fix potentially uninitialized hotspot pointer

Should fix some crashes on Windows
This commit is contained in:
Matthew Hoops 2012-04-07 16:35:50 -04:00
parent a2454f6563
commit 1fb5238cf3

View File

@ -180,7 +180,7 @@ InputHandler *InputHandler::setInputHandler(InputHandler *currentHandler) {
void InputHandler::pollForInput() {
if (_inputHandler) {
Input input;
Hotspot *cursorSpot;
Hotspot *cursorSpot = 0;
InputHandler::getInput(input, cursorSpot);
if (_inputHandler->isClickInput(input, cursorSpot))