From: Ingo Ruhnke Date: Wed, 13 Aug 2014 17:18:38 +0000 (+0200) Subject: Fixed crash due to DrawingRequestData being cast to the wrong type X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=82f8db26441ff7dd1e1f72d579630bd8d807175e;p=supertux.git Fixed crash due to DrawingRequestData being cast to the wrong type --- 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());