From 1fb5238cf32a1fea07e26ba3693c7d6c97dd9023 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Sat, 7 Apr 2012 16:35:50 -0400 Subject: PEGASUS: Fix potentially uninitialized hotspot pointer Should fix some crashes on Windows --- engines/pegasus/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/pegasus/input.cpp b/engines/pegasus/input.cpp index ef9d9a6b8e..c60f00ddad 100644 --- a/engines/pegasus/input.cpp +++ b/engines/pegasus/input.cpp @@ -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)) -- cgit v1.2.3