BGE: Fix for [#34383] Blender crash Steering actuator 2.66 -> 2.59 -> 2.66. Reported and fixed by HG1.

This commit is contained in:
2013-04-28 06:13:24 +00:00
parent 1cc52288d5
commit 46dad61e50

View File

@@ -90,6 +90,7 @@
#include "BKE_sequencer.h"
#include "BKE_texture.h"
#include "BKE_sound.h"
#include "BKE_sca.h"
#include "NOD_socket.h"
@@ -2268,8 +2269,13 @@ void blo_do_versions_250(FileData *fd, Library *lib, Main *main)
for (act = ob->actuators.first; act; act = act->next) {
if (act->type == ACT_STEERING) {
bSteeringActuator *stact = act->data;
if (stact->facingaxis == 0) {
stact->facingaxis = 1;
if (stact == NULL) {//HG1
init_actuator(act);
}
else {
if (stact->facingaxis == 0) {
stact->facingaxis = 1;
}
}
}
}