Fix returnval of critter_mod_skill (#476)

Fixes #474
This commit is contained in:
Mike Klaas
2026-05-27 22:14:16 -07:00
committed by GitHub
parent db86e53af2
commit c95f91c2ff
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -1124,7 +1124,7 @@ Sound* soundEffectLoad(const char* name, Object* object)
snprintf(path, sizeof(path), "%sH%cXXXX%s%s", _sound_sfx_path, v9, name + 6, ".ACM");
if (gGameSoundDebugEnabled) {
debugPrint("tyring %s ", path + strlen(_sound_sfx_path));
debugPrint("trying %s ", path + strlen(_sound_sfx_path));
}
if (soundLoad(sound, path) == 0) {
@@ -1139,7 +1139,7 @@ Sound* soundEffectLoad(const char* name, Object* object)
snprintf(path, sizeof(path), "%sHMXXXX%s%s", _sound_sfx_path, name + 6, ".ACM");
if (gGameSoundDebugEnabled) {
debugPrint("tyring %s ", path + strlen(_sound_sfx_path));
debugPrint("trying %s ", path + strlen(_sound_sfx_path));
}
if (soundLoad(sound, path) == 0) {
@@ -1157,7 +1157,7 @@ Sound* soundEffectLoad(const char* name, Object* object)
snprintf(path, sizeof(path), "%sMAMTNT%s%s", _sound_sfx_path, name + 6, ".ACM");
if (gGameSoundDebugEnabled) {
debugPrint("tyring %s ", path + strlen(_sound_sfx_path));
debugPrint("trying %s ", path + strlen(_sound_sfx_path));
}
if (soundLoad(sound, path) == 0) {
+1 -1
View File
@@ -4327,7 +4327,7 @@ static void opCritterModifySkill(Program* program)
scriptPredefinedError(program, "critter_mod_skill", SCRIPT_ERROR_OBJECT_IS_NULL);
}
programStackPushInteger(program, 0);
// CE: remove returnval, which ssl compiler doesn't expect
}
// sfx_build_char_name