From 82f8db26441ff7dd1e1f72d579630bd8d807175e Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Wed, 13 Aug 2014 19:18:38 +0200 Subject: [PATCH] Fixed crash due to DrawingRequestData being cast to the wrong type --- src/video/gl/gl_lightmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/gl/gl_lightmap.cpp b/src/video/gl/gl_lightmap.cpp index d3fa72126..48291a67e 100644 --- a/src/video/gl/gl_lightmap.cpp +++ b/src/video/gl/gl_lightmap.cpp @@ -148,7 +148,7 @@ GLLightmap::do_draw() void GLLightmap::draw_surface(const DrawingRequest& request) { - const Surface* surface = (const Surface*) request.request_data; + const Surface* surface = static_cast(request.request_data)->surface; boost::shared_ptr gltexture = boost::dynamic_pointer_cast(surface->get_texture()); GLSurfaceData *surface_data = reinterpret_cast(surface->get_surface_data()); -- 2.11.0