diff options
author | Tom Musgrove <LetterRip@gmail.com> | 2007-01-08 07:22:23 +0300 |
---|---|---|
committer | Tom Musgrove <LetterRip@gmail.com> | 2007-01-08 07:22:23 +0300 |
commit | 4a1a766a16fd692c62233c6348ff35c59eed1936 (patch) | |
tree | c60ed5fa4366d00f21d6284afd44e3430a48d566 /source/gameengine/GamePlayer | |
parent | 0b2b893cef4d29377400014a6ab7df7cc05f3e76 (diff) |
= game engine fixes=
two fixes to the GE by Charlie
Diffstat (limited to 'source/gameengine/GamePlayer')
-rw-r--r-- | source/gameengine/GamePlayer/ghost/GPG_ghost.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp index 2affdfeae18..b0eb1d9c2ca 100644 --- a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp +++ b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp @@ -60,6 +60,7 @@ extern "C" { #endif // __cplusplus #include "BKE_global.h" +#include "BKE_icons.h" #include "BLI_blenlib.h" #include "DNA_scene_types.h" #include "BLO_readfile.h" @@ -621,6 +622,9 @@ int main(int argc, char** argv) char *startscenename = scene->id.name + 2; G.fileflags = bfd->fileflags; + //Seg Fault; icon.c gIcons == 0 + BKE_icons_init(1); + titlename = maggie->name; // Check whether the game should be displayed full-screen @@ -753,6 +757,10 @@ int main(int argc, char** argv) } } while (exitcode == KX_EXIT_REQUEST_RESTART_GAME || exitcode == KX_EXIT_REQUEST_START_OTHER_GAME); } + + // Seg Fault; icon.c gIcons == 0 + BKE_icons_free(); + // Dispose the system GHOST_ISystem::disposeSystem(); } else { |