ints should be reset to 0, not NULL.
I know it's a macro, but this is just begging to be abused somehow.
This commit is contained in:
@@ -137,7 +137,7 @@ void DIDevice::Close()
|
||||
Device->Release();
|
||||
|
||||
Device = NULL;
|
||||
buttons = axes = hats = NULL;
|
||||
buttons = axes = hats = 0;
|
||||
Inputs.clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user