mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 03:56:20 +00:00
MOHAWK: Don't initialize a null pointer, to make VS2010 happy.
This commit is contained in:
parent
f236ecb5d3
commit
44e79c70fa
@ -816,7 +816,7 @@ void Selenitic::o_soundLockEndMove(uint16 op, uint16 var, uint16 argc, uint16 *a
|
||||
debugC(kDebugScript, "Opcode %d: Sound lock end move", op);
|
||||
|
||||
MystResourceType10 *slider = soundLockSliderFromVar(var);
|
||||
uint16 *value = 0;
|
||||
uint16 *value = &_state.soundLockSliderPositions[0];
|
||||
|
||||
switch (var) {
|
||||
case 20: // Sound lock sliders
|
||||
@ -834,6 +834,9 @@ void Selenitic::o_soundLockEndMove(uint16 op, uint16 var, uint16 argc, uint16 *a
|
||||
case 24:
|
||||
value = &_state.soundLockSliderPositions[4];
|
||||
break;
|
||||
default:
|
||||
error("Incorrect var value for Selenitic opcode 114");
|
||||
break;
|
||||
}
|
||||
|
||||
uint16 stepped = 12 * (*value / 12) + 6;
|
||||
|
Loading…
Reference in New Issue
Block a user