| 333 | } |
| 334 | |
| 335 | static bool is_good_entity_id(int entity_id) { |
| 336 | return entity_id == Persistence::WORLD_ENTITY_ID || entity_id >= 0; |
| 337 | } |
| 338 | |
| 339 | PersistentDataItem Persistence::addItem(int entity_id, const std::string &key) { |
| 340 | if (!is_good_entity_id(entity_id) || key.empty() || !Core::getInstance().isWorldLoaded()) |
no outgoing calls
no test coverage detected