mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
Fixed a crash caused by a clipper reference counting error
This commit is contained in:
parent
b35fddad24
commit
113da37945
@ -150,7 +150,8 @@ namespace DDraw
|
|||||||
auto it = g_surfaceToClipperData.find(&surface);
|
auto it = g_surfaceToClipperData.find(&surface);
|
||||||
if (it != g_surfaceToClipperData.end())
|
if (it != g_surfaceToClipperData.end())
|
||||||
{
|
{
|
||||||
auto [prevClipper, prevClipperData] = *it->second;
|
auto prevClipper = it->second->first;
|
||||||
|
auto& prevClipperData = it->second->second;
|
||||||
if (prevClipper == clipper)
|
if (prevClipper == clipper)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user