From 8a932fed3e5700af283017deab3cb1da11cb0dce Mon Sep 17 00:00:00 2001 From: Zaba999 Date: Thu, 11 Oct 2012 23:09:29 +0200 Subject: Added saving user scripts on game save. Fixed bug in writing script to file. --- src/graphics/opengl/gldevice.cpp | 4 ++++ src/graphics/opengl/gldevice.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/graphics/opengl') diff --git a/src/graphics/opengl/gldevice.cpp b/src/graphics/opengl/gldevice.cpp index dbf91c7..ee77420 100644 --- a/src/graphics/opengl/gldevice.cpp +++ b/src/graphics/opengl/gldevice.cpp @@ -48,6 +48,10 @@ // Graphics module namespace namespace Gfx { +GLDeviceConfig::GLDeviceConfig() +{ + LoadDefault(); +} void GLDeviceConfig::LoadDefault() { diff --git a/src/graphics/opengl/gldevice.h b/src/graphics/opengl/gldevice.h index cda7b02..87c1247 100644 --- a/src/graphics/opengl/gldevice.h +++ b/src/graphics/opengl/gldevice.h @@ -52,7 +52,7 @@ struct GLDeviceConfig : public DeviceConfig bool hardwareAccel; //! Constructor calls LoadDefaults() - GLDeviceConfig() { LoadDefault(); } + GLDeviceConfig(); //! Loads the default values void LoadDefault(); -- cgit v1.2.3-1-g7c22