mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-01 14:20:55 +00:00
- added missing null pointer check to SBarInfo's inventory bar drawer.
This commit is contained in:
parent
a2b4c61a2a
commit
7b8e63db20
1 changed files with 1 additions and 1 deletions
|
@ -2157,7 +2157,7 @@ class CommandDrawInventoryBar : public SBarInfoCommand
|
||||||
statusBar->DrawGraphic(statusBar->Images[statusBar->invBarOffset + imgARTIBOX], x + (!vertical ? (i*spacing) : 0), y + (vertical ? (i*spacing) : 0), block->XOffset(), block->YOffset(), bgalpha, block->FullScreenOffsets());
|
statusBar->DrawGraphic(statusBar->Images[statusBar->invBarOffset + imgARTIBOX], x + (!vertical ? (i*spacing) : 0), y + (vertical ? (i*spacing) : 0), block->XOffset(), block->YOffset(), bgalpha, block->FullScreenOffsets());
|
||||||
|
|
||||||
// Is there something to the left?
|
// Is there something to the left?
|
||||||
if (!noArrows && PrevInv(statusBar->CPlayer->mo->InvFirst))
|
if (!noArrows && statusBar->CPlayer->mo->InvFirst && PrevInv(statusBar->CPlayer->mo->InvFirst))
|
||||||
{
|
{
|
||||||
int offset = (style != STYLE_Strife ? (style != STYLE_HexenStrict ? -12 : -10) : 14);
|
int offset = (style != STYLE_Strife ? (style != STYLE_HexenStrict ? -12 : -10) : 14);
|
||||||
int yOffset = style != STYLE_HexenStrict ? 0 : -1;
|
int yOffset = style != STYLE_HexenStrict ? 0 : -1;
|
||||||
|
|
Loading…
Reference in a new issue