Add missing initialized check to Mouse.java

This commit is contained in:
Elias Naur 2004-07-27 17:08:48 +00:00
parent b19f257041
commit 466faf572f
1 changed files with 2 additions and 1 deletions

View File

@ -271,7 +271,8 @@ public class Mouse {
public static void create() throws LWJGLException { public static void create() throws LWJGLException {
if (!Display.isCreated()) throw new IllegalStateException("Display must be created prior to creating mouse"); if (!Display.isCreated()) throw new IllegalStateException("Display must be created prior to creating mouse");
initialize(); if (!initialized)
initialize();
if (created) { return; } if (created) { return; }
nCreate(); nCreate();
hasWheel = nHasWheel(); hasWheel = nHasWheel();