Skip to content

Commit

Permalink
Fix summons always spawning (#3724)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramon-bernardo authored and Znote committed Nov 1, 2021
1 parent 56d8bce commit 372aad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/luascript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13815,8 +13815,8 @@ int LuaScriptInterface::luaMonsterTypeAddSummon(lua_State* L)
if (monsterType) {
summonBlock_t summon;
summon.name = getString(L, 2);
summon.chance = getNumber<int32_t>(L, 3);
summon.speed = getNumber<int32_t>(L, 4);
summon.speed = getNumber<int32_t>(L, 3);
summon.chance = getNumber<int32_t>(L, 4);
monsterType->info.summons.push_back(summon);
pushBoolean(L, true);
} else {
Expand Down

0 comments on commit 372aad6

Please sign in to comment.