Skip to content

Commit 2013ac0

Browse files
authored
Update LegacyApplication.java
1 parent 904b899 commit 2013ac0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jme3-core/src/main/java/com/jme3/app/LegacyApplication.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ public class LegacyApplication implements Application, SystemListener {
121121
* Create a new instance of <code>LegacyApplication</code>.
122122
*/
123123
public LegacyApplication() {
124+
initStateManager();
124125
}
125126

126127
/**
@@ -130,8 +131,7 @@ public LegacyApplication() {
130131
* @param initialStates app states to pre-attach, or null for none
131132
*/
132133
public LegacyApplication(AppState... initialStates) {
133-
initStateManager();
134-
134+
this();
135135
if (initialStates != null) {
136136
for (AppState a : initialStates) {
137137
if (a != null) {

0 commit comments

Comments
 (0)