Fix possible runtime exceptions with Targeting Overlay.

This commit is contained in:
elcnesh
2015-03-03 08:27:29 +00:00
parent 3b54fd2fce
commit 600566a8c7

View File

@@ -365,7 +365,7 @@ public class TargetingOverlay {
@Override
public void paintComponent(final Graphics g) {
// No need for this except in match view
if (!Singletons.getControl().getCurrentScreen().isMatchScreen()) {
if (Singletons.getControl().getCurrentScreen() != matchUI.getScreen()) {
return;
}