diff options
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r-- | src/actions/actions.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 1397791d1..e4b2d9db5 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -1493,4 +1493,12 @@ impHandler(storageToInv) return true; } +impHandler(protectItem) +{ + const int id = atoi(event.args.c_str()); + if (id > 0) + PlayerInfo::protectItem(id); + return true; +} + } // namespace Actions |