Skip to content

Commit 3e33df8

Browse files
authored
[GEN][ZH] Prevent dereferencing NULL pointer 'drawable' in BoneFXUpdate::resolveBoneLocations() (#1142)
1 parent 264de8d commit 3e33df8

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

Generals/Code/GameEngine/Source/GameLogic/Object/Update/BoneFXUpdate.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,6 @@ void BoneFXUpdate::resolveBoneLocations() {
508508
Drawable *drawable = building->getDrawable();
509509
if (drawable == NULL) {
510510
DEBUG_ASSERTCRASH(drawable != NULL, ("There is no drawable?"));
511-
}
512-
513-
if (d == NULL) {
514511
return;
515512
}
516513

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/BoneFXUpdate.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,6 @@ void BoneFXUpdate::resolveBoneLocations() {
511511
Drawable *drawable = building->getDrawable();
512512
if (drawable == NULL) {
513513
DEBUG_ASSERTCRASH(drawable != NULL, ("There is no drawable?"));
514-
}
515-
516-
if (d == NULL) {
517514
return;
518515
}
519516

0 commit comments

Comments
 (0)