Showing the changes to assignment-client/src/scripts/EntityScriptServer.cpp (1 of 4 files). Show all
Unified · Split
| @@ -481,14 +481,14 @@ void EntityScriptServer::deletingEntity(const EntityItemID& entityID) { · 480 unmodified lines | ||
| 481 | 481 | } |
| 482 | 482 | } |
| 483 | 483 | |
| 484 | −void EntityScriptServer::entityServerScriptChanging(const EntityItemID& entityID, const bool reload) { | |
| 484 | +void EntityScriptServer::entityServerScriptChanging(const EntityItemID& entityID, bool reload) { | |
| 485 | 485 | if (_entityViewer.getTree() && !_shuttingDown) { |
| 486 | 486 | _entitiesScriptEngine->unloadEntityScript(entityID, true); |
| 487 | 487 | checkAndCallPreload(entityID, reload); |
| 488 | 488 | } |
| 489 | 489 | } |
| 490 | 490 | |
| 491 | −void EntityScriptServer::checkAndCallPreload(const EntityItemID& entityID, const bool reload) { | |
| 491 | +void EntityScriptServer::checkAndCallPreload(const EntityItemID& entityID, bool reload) { | |
| 492 | 492 | if (_entityViewer.getTree() && !_shuttingDown && _entitiesScriptEngine) { |
| 493 | 493 | |
| 494 | 494 | EntityItemPointer entity = _entityViewer.getTree()->findEntityByEntityItemID(entityID); |