aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula
diff options
context:
space:
mode:
authorPaweł Kołodziejski2007-10-13 21:54:37 +0000
committerPaweł Kołodziejski2007-10-13 21:54:37 +0000
commit86b6429e9766d1f9b43734ea89314d9561bc85c7 (patch)
tree17df8ab8f3fef99cb94919fee15b4e0fcd4ec976 /engines/drascula
parent1c52ea0562f9c4d93c3505a57593efc45c9104c1 (diff)
downloadscummvm-rg350-86b6429e9766d1f9b43734ea89314d9561bc85c7.tar.gz
scummvm-rg350-86b6429e9766d1f9b43734ea89314d9561bc85c7.tar.bz2
scummvm-rg350-86b6429e9766d1f9b43734ea89314d9561bc85c7.zip
clear ald after release
svn-id: r29214
Diffstat (limited to 'engines/drascula')
-rw-r--r--engines/drascula/drascula.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp
index c39bae9012..8432aea9f2 100644
--- a/engines/drascula/drascula.cpp
+++ b/engines/drascula/drascula.cpp
@@ -173,6 +173,7 @@ int DrasculaEngine::go() {
frame_murcielago = 0;
c_mirar = 0;
c_poder = 0;
+ ald = NULL;
asigna_memoria();
carga_info();
@@ -1406,8 +1407,10 @@ void DrasculaEngine::para_cargar(char nom_game[]) {
if (num_ejec != 1)
borra_pantalla();
carga_partida(nom_game);
- if (num_ejec == 2 || num_ejec == 3 || num_ejec == 5)
+ if (num_ejec == 2 || num_ejec == 3 || num_ejec == 5) {
delete ald;
+ ald = NULL;
+ }
carga_escoba(datos_actuales);
sin_verbo();
}
@@ -1563,6 +1566,7 @@ martini:
sscanf(buffer, "%d", &cerca);
}
delete ald;
+ ald = NULL;
canal_p(para_codificar);
if (num_ejec == 2) {
@@ -4181,6 +4185,7 @@ bool DrasculaEngine::sal_de_la_habitacion(int l) {
}
borra_pantalla();
delete ald;
+ ald = NULL;
strcpy(salgo, alapantallakeva[l]);
strcat(salgo, ".ald");
hare_x =- 1;
@@ -5578,6 +5583,7 @@ void DrasculaEngine::conversa(const char *nom_fich) {
getLine(ald, buffer, size);
sscanf(buffer, "%d", &respuesta3);
delete ald;
+ ald = NULL;
canal_p(para_codificar);
if (num_ejec == 2 && !strcmp(nom_fich, "op_5.cal") && flags[38] == 1 && flags[33] == 1) {