mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 18:32:44 +01:00
Fix crash if there is no player object
This commit is contained in:
parent
76eb43c023
commit
8575408ca2
@ -196,9 +196,11 @@ void drawPlayerInfo(PlayerController* player, GameWorld* world, GameRenderer* re
|
|||||||
|
|
||||||
void drawHUD(ViewCamera& currentView, PlayerController* player, GameWorld* world, GameRenderer* render)
|
void drawHUD(ViewCamera& currentView, PlayerController* player, GameWorld* world, GameRenderer* render)
|
||||||
{
|
{
|
||||||
|
if(player && player->getCharacter()) {
|
||||||
drawMap(currentView, player, world, render);
|
drawMap(currentView, player, world, render);
|
||||||
drawPlayerInfo(player, world, render);
|
drawPlayerInfo(player, world, render);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void drawOnScreenText(GameWorld* world, GameRenderer* renderer)
|
void drawOnScreenText(GameWorld* world, GameRenderer* renderer)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user