The big NULL replacement party part 2.
This may take a bit. Trying to do this by operator/command.
This commit is contained in:
@@ -332,7 +332,7 @@ void ScreenTextEntry::TextEntrySettings::FromStack( lua_State *L )
|
||||
// Get ScreenMessage
|
||||
lua_getfield( L, iTab, "SendOnPop" );
|
||||
const char *pStr = lua_tostring( L, -1 );
|
||||
if( pStr == NULL )
|
||||
if( pStr == nullptr )
|
||||
smSendOnPop = SM_None;
|
||||
else
|
||||
smSendOnPop = ScreenMessageHelpers::ToScreenMessage( pStr );
|
||||
@@ -341,7 +341,7 @@ void ScreenTextEntry::TextEntrySettings::FromStack( lua_State *L )
|
||||
// Get Question
|
||||
lua_getfield( L, iTab, "Question" );
|
||||
pStr = lua_tostring( L, -1 );
|
||||
if( pStr == NULL )
|
||||
if( pStr == nullptr )
|
||||
RageException::Throw( "\"Question\" entry is not a string." );
|
||||
sQuestion = pStr;
|
||||
lua_settop( L, iTab );
|
||||
@@ -349,7 +349,7 @@ void ScreenTextEntry::TextEntrySettings::FromStack( lua_State *L )
|
||||
// Get Initial Answer
|
||||
lua_getfield( L, iTab, "InitialAnswer" );
|
||||
pStr = lua_tostring( L, -1 );
|
||||
if( pStr == NULL )
|
||||
if( pStr == nullptr )
|
||||
pStr = "";
|
||||
sInitialAnswer = pStr;
|
||||
lua_settop( L, iTab );
|
||||
|
||||
Reference in New Issue
Block a user