summaryrefslogtreecommitdiff
path: root/src/map/pc.cpp
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2019-04-15 13:57:55 -0400
committergumi <git@gumi.ca>2019-04-15 13:57:55 -0400
commitb533ac13d486a15f2b96803bf2258a014575c464 (patch)
tree80abd8626fe2aff785ad9e3ce58ea8d90a860a15 /src/map/pc.cpp
parente80f96e9288e889d3e8756100a7dffd8c4791fa6 (diff)
downloadtmwa-b533ac13d486a15f2b96803bf2258a014575c464.tar.gz
tmwa-b533ac13d486a15f2b96803bf2258a014575c464.tar.bz2
tmwa-b533ac13d486a15f2b96803bf2258a014575c464.tar.xz
tmwa-b533ac13d486a15f2b96803bf2258a014575c464.zip
fix clang warnings
Diffstat (limited to 'src/map/pc.cpp')
-rw-r--r--src/map/pc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index b9b41d9..8cd19d9 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -3595,7 +3595,7 @@ int pc_readparam(dumb_ptr<block_list> bl, SP type)
val = sd ? sd->mute.guild : 0;
break;
case SP::AUTOMOD:
- val = sd ? (int)sd->automod : 0;
+ val = sd ? static_cast<int>(sd->automod) : 0;
break;
}
@@ -3844,7 +3844,7 @@ int pc_setparam(dumb_ptr<block_list> bl, SP type, int val)
break;
case SP::AUTOMOD:
nullpo_retz(sd);
- sd->automod = (AutoMod)val;
+ sd->automod = static_cast<AutoMod>(val);
break;
}