Ticket #2996: 0002-3-Fix-crash.patch

File 0002-3-Fix-crash.patch, 677 bytes (added by BogDan, 9 years ago)
  • source/ps/TouchInput.cpp

    From 9ca463cd4139a9ff114226e58a9fa8529313bb73 Mon Sep 17 00:00:00 2001
    From: BogDan Vatra <bogdan@kde.org>
    Date: Tue, 13 Jan 2015 18:47:57 +0200
    Subject: [PATCH 3/5] Fix crash.
    
    ---
     source/ps/TouchInput.cpp | 3 +++
     1 file changed, 3 insertions(+)
    
    diff --git a/source/ps/TouchInput.cpp b/source/ps/TouchInput.cpp
    index a463ff6..ab239e7 100644
    a b void CTouchInput::OnFingerUp(int id, int x, int y)  
    113113
    114114void CTouchInput::OnFingerMotion(int id, int x, int y)
    115115{
     116    if (!g_Game)
     117        return;
     118
    116119    debug_printf(L"finger motion %d %d %d; state %d\n", id, x, y, m_State);
    117120
    118121    CVector2D pos(x, y);