diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 1cf0fa1c..17dfdd2e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -48,7 +48,7 @@ SERVER_INFO *server_info; PLAYER_INFO *char_info = new PLAYER_INFO; BITMAP *playerset, *hairset; -DATAFILE *graphic, *emotions; +DATAFILE *graphic, *emotions, *weaponset; char username[25]; char password[25]; @@ -207,7 +207,10 @@ void init_engine() { hairset = load_bitmap("./data/graphic/hairset.bmp", NULL); if(hairset==NULL) error("Unable to load hairset bitmap"); - + weaponset = load_datafile("./data/graphic/weapon.dat"); + if(weaponset==NULL) + error("Unable to load weaponset datafile"); + init_gui(buffer, "./data/Skin/aqua.skin"); state = LOGIN; } |