Skip to content

Commit 78cfe2a

Browse files
committed
CStalkerAnimationManager: The infamous 'error in stalker with visual' related issues can be averted by resetting
1 parent 266f6bb commit 78cfe2a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/xrGame/stalker_animation_manager_update.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,13 @@ void CStalkerAnimationManager::update ()
237237
update_impl ();
238238
}
239239
catch(...) {
240-
Msg ("! error in stalker with visual %s",*object().cNameVisual());
241-
throw;
240+
Msg("! error in stalker with visual %s and ID %s",*object().cNameVisual(),object().ID());
241+
head().reset();
242+
torso().reset();
243+
legs().reset();
244+
global().reset();
245+
return;
246+
//throw;
242247
}
243248
STOP_PROFILE
244249
}

0 commit comments

Comments
 (0)