From 170fa80d6fa9940299ac66465e2942a41d9ee9bd Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 3 Nov 2015 13:40:49 +0100 Subject: [PATCH] Fixed: Crash when cursor is over WebPage, Outpost or WebIG at first frame, patch by kishan_grimout (issue #245) --- code/nel/src/gui/view_pointer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/nel/src/gui/view_pointer.cpp b/code/nel/src/gui/view_pointer.cpp index 3816045b8..bc69ebdaa 100644 --- a/code/nel/src/gui/view_pointer.cpp +++ b/code/nel/src/gui/view_pointer.cpp @@ -52,6 +52,9 @@ namespace NLGUI _TxIdPanR2 = -2; _TxIdCanPanR2 = -2; + _OffsetX = 0; + _OffsetY = 0; + // The pointer must be draw over ALL layers _RenderLayer= VR_LAYER_MAX; _Color = CRGBA(255,255,255,255); @@ -59,6 +62,7 @@ namespace NLGUI _StringMode = false; _ForceStringMode = false; _StringCursor = NULL; + _StringCursorHardware = NULL; } void CViewPointer::forceLink()