mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-30 08:01:13 -04:00
Fix randomizer seed generation and activation
This commit is contained in:
@@ -112,9 +112,7 @@ void event_remove_trade_item(ModContext*, const FlowEventContext* event, void*)
|
||||
|
||||
std::vector<uint8_t> encoded_text(const std::string& text) {
|
||||
std::vector<uint8_t> result{text.begin(), text.end()};
|
||||
if (result.empty() || result.back() != 0) {
|
||||
result.push_back(0);
|
||||
}
|
||||
result.push_back(0);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user