mirror of
https://github.com/godotengine/godot.git
synced 2024-11-15 00:23:27 +00:00
Fix multi-statement macro call not being covered.
This commit is contained in:
parent
b17e71b6e5
commit
56005772cd
@ -39,7 +39,8 @@
|
||||
new cl
|
||||
|
||||
#define bulletdelete(cl) \
|
||||
delete cl; \
|
||||
cl = NULL;
|
||||
|
||||
{ \
|
||||
delete cl; \
|
||||
cl = NULL; \
|
||||
}
|
||||
#endif
|
||||
|
@ -310,9 +310,10 @@ void RigidCollisionObjectBullet::shape_changed(int p_shape_index) {
|
||||
|
||||
void RigidCollisionObjectBullet::reload_shapes() {
|
||||
|
||||
if (mainShape && mainShape->isCompound())
|
||||
if (mainShape && mainShape->isCompound()) {
|
||||
// Destroy compound
|
||||
bulletdelete(mainShape);
|
||||
}
|
||||
|
||||
mainShape = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user