MOHAWK: Don't initialize a null pointer, to make VS2010 happy.

This commit is contained in:
Bastien Bouclet 2011-04-21 08:05:00 +02:00
parent f236ecb5d3
commit 44e79c70fa

View File

@ -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;