mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2025-12-07 04:51:00 +01:00
Fixed uninitialized memory.
This commit is contained in:
parent
8b1f6f4cfa
commit
d267fd5c98
5 changed files with 9 additions and 2 deletions
|
|
@ -17,6 +17,8 @@ TPinballComponent::TPinballComponent(TPinballTable* table, int groupIndex, bool
|
|||
RenderSprite = nullptr;
|
||||
ListBitmap = nullptr;
|
||||
ListZMap = nullptr;
|
||||
GroupName = nullptr;
|
||||
Control = nullptr;
|
||||
if (table)
|
||||
table->ComponentList->Add(this);
|
||||
if (groupIndex >= 0)
|
||||
|
|
@ -64,7 +66,7 @@ TPinballComponent::TPinballComponent(TPinballTable* table, int groupIndex, bool
|
|||
}
|
||||
|
||||
RenderSprite = render::create_sprite(
|
||||
visualCount > 0 ? VisualType::Sprite :VisualType::None,
|
||||
visualCount > 0 ? VisualType::Sprite : VisualType::None,
|
||||
rootBmp,
|
||||
zMap,
|
||||
rootBmp->XPosition - table->XOffset,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue