Browse Source

Fix town events not actually giving offered creatures

Ivan Savenko 1 year ago
parent
commit
115439f16a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      server/processors/NewTurnProcessor.cpp

+ 2 - 0
server/processors/NewTurnProcessor.cpp

@@ -116,6 +116,8 @@ void NewTurnProcessor::handleTownEvents(const CGTownInstance * town)
 					iw.components.emplace_back(ComponentType::CREATURE, town->creatures.at(i).second.back(), event.creatures.at(i));
 					iw.components.emplace_back(ComponentType::CREATURE, town->creatures.at(i).second.back(), event.creatures.at(i));
 				}
 				}
 			}
 			}
+
+			gameHandler->sendAndApply(sac); //show dialog
 		}
 		}
 		gameHandler->sendAndApply(iw); //show dialog
 		gameHandler->sendAndApply(iw); //show dialog
 	}
 	}