diff options
Diffstat (limited to '')
-rw-r--r-- | src/bossPodouble.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/bossPodouble.cpp b/src/bossPodouble.cpp index c6eb99b..5d41a5c 100644 --- a/src/bossPodouble.cpp +++ b/src/bossPodouble.cpp @@ -557,15 +557,11 @@ int daPodouble::onDraw() { /////////////// void daPodouble::beginState_Outro() { - daPodouble *other = (daPodouble*)FindActorByType(SHIP_WINDOW, (Actor*)this); - if (other != 0) { - other->doStateChange(&StateID_SyncDie); - + daPodouble *other = (daPodouble*)FindActorByType(SHIP_WINDOW, 0); if (other->id == this->id) { - other = (daPodouble*)FindActorByType(SHIP_WINDOW, (Actor*)other); + other = (daPodouble*)FindActorByType(SHIP_WINDOW, (Actor*)this); other->doStateChange(&StateID_SyncDie); } - } OutroSetup(this); this->timer = 0; |