Skip to content

Commit 2ffe17a

Browse files
committed
Update to 60ae4c3 (Changed CScriptArgReader to handle unsigned numbers better)
Fixed dbPoll to accept negative timeout.
1 parent cb73c10 commit 2ffe17a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MTA10_Server/mods/deathmatch/logic/luadefs/CLuaDatabaseDefs.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,11 +506,11 @@ int CLuaDatabaseDefs::DbFree ( lua_State* luaVM )
506506
int CLuaDatabaseDefs::DbPoll ( lua_State* luaVM )
507507
{
508508
// table dbPoll ( handle query, int timeout )
509-
CDbJobData* pJobData; uint uiTimeout;
509+
CDbJobData* pJobData; int iTimeout;
510510

511511
CScriptArgReader argStream ( luaVM );
512512
argStream.ReadUserData ( pJobData );
513-
argStream.ReadNumber ( uiTimeout );
513+
argStream.ReadNumber ( iTimeout );
514514

515515
if ( !argStream.HasErrors () )
516516
{
@@ -523,7 +523,7 @@ int CLuaDatabaseDefs::DbPoll ( lua_State* luaVM )
523523

524524
if ( !argStream.HasErrors () )
525525
{
526-
if ( !g_pGame->GetDatabaseManager ()->QueryPoll ( pJobData, uiTimeout ) )
526+
if ( !g_pGame->GetDatabaseManager ()->QueryPoll ( pJobData, iTimeout ) )
527527
{
528528
// Not ready yet
529529
lua_pushnil ( luaVM );

0 commit comments

Comments
 (0)