diff options
author | Freeyorp <TheFreeYorp+git@gmail.com> | 2024-04-29 12:21:55 +0000 |
---|---|---|
committer | Freeyorp <TheFreeYorp+git@gmail.com> | 2024-04-29 12:43:39 +0000 |
commit | 04dfb9a9af92352af291ea8b1fa7150644614397 (patch) | |
tree | 40309105b3fe1bb605bb9ef859ad8f28e22d61f8 /src | |
parent | 9d00c99cd0c636aa5a6c25677d334d455cd9195f (diff) | |
download | tmwa-04dfb9a9af92352af291ea8b1fa7150644614397.tar.gz tmwa-04dfb9a9af92352af291ea8b1fa7150644614397.tar.bz2 tmwa-04dfb9a9af92352af291ea8b1fa7150644614397.tar.xz tmwa-04dfb9a9af92352af291ea8b1fa7150644614397.zip |
npc_scripcont: consistent return value
`npc_scriptcont` now consistently returns 1 on failure, though in practice,
this return value was always ignored.
Diffstat (limited to 'src')
-rw-r--r-- | src/map/npc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/npc.cpp b/src/map/npc.cpp index 8a6bead..930b9de 100644 --- a/src/map/npc.cpp +++ b/src/map/npc.cpp @@ -831,14 +831,14 @@ int npc_scriptcont(dumb_ptr<map_session_data> sd, BlockId id) { clif_scriptclose(sd, id); npc_event_dequeue(sd); - return 0; + return 1; } if (nd->is_script()->scr.parent && map_id2bl(nd->is_script()->scr.parent) == nullptr) { npc_free(nd); - return 0; + return 1; } sd->npc_pos = run_script(ScriptPointer(script_or_parent(nd->is_script()), sd->npc_pos), sd->bl_id, id); |