mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-26 14:33:46 -04:00
add type checking
This commit is contained in:
parent
a4f5382ec9
commit
c3c3bcb7dc
@ -3537,11 +3537,11 @@ static void ResetDefaults(ss_types reset_screen)
|
||||
{
|
||||
warn |= flags & (S_LEVWARN | S_PRGWARN);
|
||||
}
|
||||
else if (dp->current.s)
|
||||
else if (dp->type == string && dp->current.s)
|
||||
{
|
||||
*dp->current.s = *dp->location.s;
|
||||
}
|
||||
else if (dp->current.i)
|
||||
else if (dp->type == number && dp->current.i)
|
||||
{
|
||||
*dp->current.i = *dp->location.i;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user