Fixed MT3749 (All sets in micro3d.c : Assert in debug build ). [couriersud]

This commit is contained in:
Couriersud 2010-03-01 21:34:15 +00:00
parent 1d3eeaf769
commit 01ba1ce097

View File

@ -214,7 +214,8 @@ INLINE noise_state *get_safe_token(running_device *device)
{
assert(device != NULL);
assert(device->token != NULL);
assert(device->type == SOUND_MICRO3D);
assert(device->type == SOUND);
assert(sound_get_type(device) == SOUND_MICRO3D);
return (noise_state *)device->token;
}