ggwave-gui : minor fix

This commit is contained in:
Georgi Gerganov
2020-12-06 11:48:11 +02:00
parent fd8390c771
commit e15efc068a

View File

@@ -411,6 +411,11 @@ void renderMain() {
const float tMessageFlyIn = 0.3f;
// we need this because we push messages in the next loop
if (messageHistory.capacity() == messageHistory.size()) {
messageHistory.reserve(messageHistory.size() + 16);
}
for (int i = 0; i < (int) messageHistory.size(); ++i) {
ImGui::PushID(i);
const auto & message = messageHistory[i];