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 Oct 13, 2021
1 parent d4740a5 commit 8b47d47
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 @@ -13832,8 +13832,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 8b47d47

Please sign in to comment.