Fix to progressbar exploit, bugreport:5199
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15442 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
c827a4e13b
commit
ec7aac5625
@ -1155,6 +1155,13 @@ int npc_scriptcont(struct map_session_data* sd, int id)
|
|||||||
**/
|
**/
|
||||||
sd->npc_idle_tick = gettick();
|
sd->npc_idle_tick = gettick();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* WPE can get to this point with a progressbar; we deny it.
|
||||||
|
**/
|
||||||
|
if( sd->progressbar.npc_id && DIFF_TICK(sd->progressbar.timeout,gettick()) > 0 )
|
||||||
|
return 1;
|
||||||
|
|
||||||
run_script_main(sd->st);
|
run_script_main(sd->st);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user