mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
SAGA2: Fix potential null dereference. CID 1457869
This commit is contained in:
parent
967f745c68
commit
2223717753
@ -1488,9 +1488,6 @@ void ContainerNode::show(void) {
|
||||
// open the window; Object should already be "open"
|
||||
if (window == NULL) {
|
||||
switch (type) {
|
||||
case readyType:
|
||||
return;
|
||||
|
||||
case physicalType:
|
||||
physicalContainerAppearance.rows = proto->getViewableRows();
|
||||
physicalContainerAppearance.cols = proto->getViewableCols();
|
||||
@ -1512,6 +1509,10 @@ void ContainerNode::show(void) {
|
||||
case enchantType:
|
||||
window = new EnchantmentContainerWindow(*this, enchantmentContainerAppearance);
|
||||
break;
|
||||
|
||||
case readyType:
|
||||
default:
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user