diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2013-01-01 01:32:46 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2013-01-01 01:32:46 +0400 |
commit | d0981c279b9705e076045c7af7faf6e90937cd96 (patch) | |
tree | 6dc9c534e5c83bd9f7fecf7b2444f74b2bd0d243 /source/gameengine/GameLogic/SCA_2DFilterActuator.cpp | |
parent | 2787c78175eb7f12e48afe65098779444ff83720 (diff) |
BGE: Fixing a crash that occurred when LibLoading a scene with a 2D Filter Actuator. The actuator was still referencing the old scene.
Diffstat (limited to 'source/gameengine/GameLogic/SCA_2DFilterActuator.cpp')
-rw-r--r-- | source/gameengine/GameLogic/SCA_2DFilterActuator.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/gameengine/GameLogic/SCA_2DFilterActuator.cpp b/source/gameengine/GameLogic/SCA_2DFilterActuator.cpp index 5ad5aedbd39..6a87d3ccb98 100644 --- a/source/gameengine/GameLogic/SCA_2DFilterActuator.cpp +++ b/source/gameengine/GameLogic/SCA_2DFilterActuator.cpp @@ -97,6 +97,11 @@ bool SCA_2DFilterActuator::Update() } +void SCA_2DFilterActuator::SetScene(SCA_IScene *scene) +{ + m_scene = scene; +} + void SCA_2DFilterActuator::SetShaderText(const char *text) { m_shaderText = text; |