1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-01-30 20:52:44 +00:00

bug fix done

This commit is contained in:
Rémi Heredero 2022-06-14 05:28:43 +02:00
parent b13b19c3fb
commit 66cb496cf7
2 changed files with 4 additions and 2 deletions

View File

@ -75,7 +75,9 @@ public class ScreenBattle extends RenderingScreen{
g.drawFilledRectangle(Settings.SIDE/2, HEIGHT_DIALOG/2 + EDGE, WIDTH_DIALOG, HEIGHT_DIALOG, 0);
//dialog
if(b != null) g.drawString(15, 245 ,b.getLine() , optimus40);
if(b == null) return;
if(b.getLine() == null) return;
g.drawString(15, 245 ,b.getLine() , optimus40);

View File

@ -35,7 +35,7 @@ public class ScreenPlayer {
if(sb != null){
sb.setBattle(b);
b.setEnemy(e);
}
screenManager.render(g);