Merge pull request #47 from chewi/camera-Waddress

Fix GCC -Waddress warning in PlayCamera
This commit is contained in:
ptitSeb 2021-11-16 00:12:12 +01:00 committed by GitHub
commit 824986f62d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -391,10 +391,8 @@ procedures:
// determine camera type and jump to corresponding routine
PlayCamera()
{
// eventually add to movers list
CCameraMarker &cm = (CCameraMarker&)*m_penTarget;
// if we have at least one marker
if( &cm!=NULL) {
if( m_penTarget!=NULL) {
// treat camera as movable
jump PlayMovingCamera();
// if there isn't any markers