summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorWesley Johnson <pr-wj@usgo.net>2025-07-08 13:58:52 +0000
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-07-08 13:58:52 +0000
commit3849649d827d6841c9545cc8644912854781dce0 (patch)
treeebc92f955fdf1f725f5db572bf1bebf64228344d /src/map
parent6c2b1a87f4c857bdb36c3583cd019b821b03e51d (diff)
downloadtmwa-master.tar.gz
tmwa-master.tar.bz2
tmwa-master.tar.xz
tmwa-master.zip
Fix error messages in `countitem` and `end` built-insHEADmaster
Function: builtin_countitem The error msg using nameid made no sense as it is output only when there is no nameid info. Changed to "no item ID". Function: builtin_end The error msg "close in a callfunc or callsub", refers to the wrong function. Changed to msg "end in a callfunc or callsub".
Diffstat (limited to 'src/map')
-rw-r--r--src/map/script-fun.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp
index 64ba542..58bca90 100644
--- a/src/map/script-fun.cpp
+++ b/src/map/script-fun.cpp
@@ -1920,7 +1920,7 @@ void builtin_countitem(ScriptState *st)
else
{
if (battle_config.error_log)
- PRINTF("wrong item ID: countitem (%i)\n"_fmt, nameid);
+ PRINTF("builtin_countitem: no item ID\n"_fmt);
}
push_int<ScriptDataInt>(st->stack, count);
@@ -2491,9 +2491,9 @@ void builtin_end(ScriptState *st)
{
dumb_ptr<npc_data> nd = map_id_is_npc(st->oid);
if(nd)
- PRINTF("Deprecated: close in a callfunc or callsub! @ %s\n"_fmt, nd->name);
+ PRINTF("Deprecated: end in a callfunc or callsub! @ %s\n"_fmt, nd->name);
else
- PRINTF("Deprecated: close in a callfunc or callsub! (no npc)\n"_fmt);
+ PRINTF("Deprecated: end in a callfunc or callsub! (no npc)\n"_fmt);
}
st->state = ScriptEndState::END;
}