Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Natashi committed Aug 6, 2020
1 parent 779c08b commit 3a74bbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/TouhouDanmakufu/Common/StgPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ void StgPlayerObject::CallSpell() {
int idSpell = objectManager->AddObject(objSpell_);

gstd::value vUse = script_->RequestEvent(StgStagePlayerScript::EV_REQUEST_SPELL);
if (!script_->IsBooleanValue(vUse))
if (!StgStagePlayerScript::IsBooleanValue(vUse))
throw gstd::wexception(L"@Event(EV_REQUEST_SPELL) must return a boolean value.");
if (!vUse.as_boolean()) {
else if (!vUse.as_boolean()) {
objectManager->DeleteObject(objSpell_);
objSpell_ = nullptr;
return;
Expand Down

0 comments on commit 3a74bbf

Please sign in to comment.