maxegg: fix compilation error due to nullptr misuse
This commit is contained in:
parent
e27cb2dec3
commit
f990f816b8
|
|
@ -456,7 +456,7 @@ void MaxEggPlugin::EndEditParams( IObjParam *ip, ULONG flags,Animatable *prev)
|
|||
ip->DeleteRollupPage(hMaxEggParams);
|
||||
hMaxEggParams = nullptr;
|
||||
} else {
|
||||
SetWindowLongPtr( hMaxEggParams, GWLP_USERDATA, nullptr );
|
||||
SetWindowLongPtr( hMaxEggParams, GWLP_USERDATA, 0L );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -593,7 +593,7 @@ bool MaxOptionsDialog::UpdateFromUI(HWND hWnd) {
|
|||
_stprintf(_short_name, _T("%.*s..."), sizeof(_short_name)-4, temp);
|
||||
else {
|
||||
_tcscpy(_short_name, temp);
|
||||
_short_name[_tcslen(_short_name) - 4] = nullptr; //Cut off the .egg
|
||||
_short_name[_tcslen(_short_name) - 4] = 0; //Cut off the .egg
|
||||
}
|
||||
|
||||
_start_frame = newSF;
|
||||
|
|
|
|||
Loading…
Reference in New Issue