Skip to content

Commit

Permalink
TITANIC: Fix copying star positions selected in photo
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed May 29, 2017
1 parent a614638 commit 4358712
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions engines/titanic/star_control/photo_crosshairs.cpp
Expand Up @@ -85,10 +85,11 @@ void CPhotoCrosshairs::selectStar(int index, CVideoSurface *surface,
surface->unlock();

++_entryIndex;
CStarPosition &newP = _positions[_entryIndex + 1];
newP = _positions[index];
const CStarPosition &srcPos = _positions[index];
CStarPosition &destPos = _entries[_entryIndex];
destPos = srcPos;

const CBaseStarEntry *starP = starField->getDataPtr(_positions[index]._index1);
const CBaseStarEntry *starP = starField->getDataPtr(destPos._index1);
markers->addStar(starP);
}
}
Expand Down

0 comments on commit 4358712

Please sign in to comment.